Class SQLServerProcedureAction
java.lang.Object
org.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.ProcedureAction
org.apache.cayenne.dba.sqlserver.SQLServerProcedureAction
- All Implemented Interfaces:
SQLAction
ProcedureAction for SQLServer MS JDBC driver. Customizes OUT parameter
processing - it has to be done AFTER the ResultSets are read (note that jTDS
driver works fine with normal ProcedureAction).
See JIRA CAY-251 for details.
- Since:
- 1.2
-
Field Summary
Fields inherited from class ProcedureAction
processedResultSets, queryModifier and TypeFieldDescriptionprotected intHolds a number of ResultSets processed by the action.protected ProcedureQueryFields inherited from class BaseSQLAction
dataNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperformAction(Connection connection, OperationObserver observer) Executes a query using a strategy defined by the implementation.Methods inherited from class ProcedureAction
createTranslator, describeResultSet, getProcedure, initStatement, readProcedureOutParametersModifier and TypeMethodDescriptionprotected ProcedureTranslatorcreateTranslator(Connection connection) Returns the ProcedureTranslator to use for this ProcedureAction.protected RowDescriptordescribeResultSet(ResultSet resultSet, int setIndex) Creates a RowDescriptor for result set.protected ProcedureReturns stored procedure for an internal query.protected voidinitStatement(CallableStatement statement) Initializes statement with query parametersprotected voidreadProcedureOutParameters(CallableStatement statement, OperationObserver delegate) Helper method that reads OUT parameters of a CallableStatement.Methods inherited from class BaseSQLAction
getInMemoryOffset, readResultSetModifier and TypeMethodDescriptionprotected intgetInMemoryOffset(int queryOffset) Returns a value of the offset that will be used to rewind the ResultSet within the SQL action before reading the result rows.protected voidreadResultSet(ResultSet resultSet, RowDescriptor descriptor, Query query, OperationObserver delegate) Helper method to process a ResultSet.
-
Constructor Details
-
SQLServerProcedureAction
- Since:
- 4.0
-
-
Method Details
-
performAction
public void performAction(Connection connection, OperationObserver observer) throws SQLException, Exception Description copied from interface:SQLActionExecutes a query using a strategy defined by the implementation.- Specified by:
performActionin interfaceSQLAction- Overrides:
performActionin classProcedureAction- Throws:
SQLExceptionException
-