| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.ProcedureAction
public class ProcedureAction
A SQLAction that runs a stored procedure. Note that ProcedureAction has internal state and is not thread-safe.
| Field Summary | |
|---|---|
| protected  int | processedResultSetsHolds a number of ResultSets processed by the action. | 
| protected  ProcedureQuery | query | 
| Fields inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction | 
|---|
| adapter, entityResolver | 
| Constructor Summary | |
|---|---|
| ProcedureAction(ProcedureQuery query,
                DbAdapter adapter,
                EntityResolver entityResolver) | |
| Method Summary | |
|---|---|
| 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. | 
|  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. | 
| Methods inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction | 
|---|
| getAdapter, getEntityResolver, getInMemoryOffset, readResultSet | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected ProcedureQuery query
protected int processedResultSets
| Constructor Detail | 
|---|
public ProcedureAction(ProcedureQuery query,
                       DbAdapter adapter,
                       EntityResolver entityResolver)
| Method Detail | 
|---|
public void performAction(Connection connection,
                          OperationObserver observer)
                   throws SQLException,
                          Exception
SQLAction
SQLException
Exceptionprotected ProcedureTranslator createTranslator(Connection connection)
connection - JDBC connection
protected 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
SQLException
Exception| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||