public class ProcedureAction extends BaseSQLAction
Modifier and Type | Field and Description |
---|---|
protected int |
processedResultSets
Holds 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, readResultSet
protected ProcedureQuery query
protected int processedResultSets
public ProcedureAction(ProcedureQuery query, DataNode dataNode)
public void performAction(Connection connection, OperationObserver observer) throws SQLException, Exception
SQLAction
SQLException
Exception
protected 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.SQLException
protected Procedure getProcedure()
protected void readProcedureOutParameters(CallableStatement statement, OperationObserver delegate) throws SQLException, Exception
SQLException
Exception
protected void initStatement(CallableStatement statement) throws Exception
Exception
Copyright © 2001–2017 Apache Cayenne. All rights reserved.