public class ProcedureAction extends BaseSQLAction
| Modifier and Type | Field and Description | 
|---|---|
| protected int | processedResultSetsHolds a number of ResultSets processed by the action. | 
| protected ProcedureQuery | query | 
dataNode| Constructor and Description | 
|---|
| ProcedureAction(ProcedureQuery query,
               DataNode dataNode) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ProcedureTranslator | createTranslator(Connection connection)Returns the ProcedureTranslator to use for this ProcedureAction. | 
| protected RowDescriptor | describeResultSet(ResultSet resultSet,
                 int setIndex)Creates a RowDescriptor for result set. | 
| protected Procedure | getProcedure()Returns stored procedure for an internal query. | 
| protected void | initStatement(CallableStatement statement)Initializes statement with query parameters | 
| void | performAction(Connection connection,
             OperationObserver observer)Executes a query using a strategy defined by the implementation. | 
| protected void | readProcedureOutParameters(CallableStatement statement,
                          OperationObserver delegate)Helper method that reads OUT parameters of a CallableStatement. | 
getInMemoryOffset, readResultSetprotected ProcedureQuery query
protected int processedResultSets
public ProcedureAction(ProcedureQuery query, DataNode dataNode)
public void performAction(Connection connection, OperationObserver observer) throws SQLException, Exception
SQLActionSQLExceptionExceptionprotected ProcedureTranslator createTranslator(Connection connection)
connection - JDBC connectionprotected RowDescriptor describeResultSet(ResultSet resultSet, int setIndex) throws SQLException
resultSet - JDBC ResultSetsetIndex - a zero-based index of the ResultSet in the query results.SQLExceptionprotected Procedure getProcedure()
protected void readProcedureOutParameters(CallableStatement statement, OperationObserver delegate) throws SQLException, Exception
SQLExceptionExceptionprotected void initStatement(CallableStatement statement) throws Exception
ExceptionCopyright © 2001–2023 Apache Cayenne. All rights reserved.