Class SelectAction
java.lang.Object
org.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.SelectAction
- All Implemented Interfaces:
SQLAction
- Direct Known Subclasses:
DB2SelectAction, DerbySelectAction, FirebirdSelectAction, H2SelectAction, IngresSelectAction, SQLiteSelectAction, SQLServerSelectAction
A SQLAction that handles SelectQuery execution.
- Since:
- 1.2
-
Field Summary
FieldsFields 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.protected voidperformAction(Connection connection, OperationObserver observer, TranslatedSelect translated) protected RSColumn[]resultColumns(TranslatedSelect translated, ResultSet rs) protected intstatementFetchSize(OperationHints hints) Returns the fetch size to set on the PreparedStatement, or 0 to leave the driver default alone.Methods inherited from class BaseSQLAction
getInMemoryOffset, readResultSet
-
Field Details
-
query
-
queryMetadata
-
-
Constructor Details
-
SelectAction
-
-
Method Details
-
performAction
-
performAction
protected void performAction(Connection connection, OperationObserver observer, TranslatedSelect translated) throws Exception - Throws:
Exception
-
resultColumns
- Throws:
SQLException
-
statementFetchSize
Returns the fetch size to set on the PreparedStatement, or 0 to leave the driver default alone. The base implementation returns the fetch size of the query, whatever it is. Adapter-specific subclasses may substitute a default of their own when the query does not set one, but must always honor a non-zero query value.- Parameters:
hints- whether the result is handed to the caller as a ResultIterator that outlives this action, and if so, whether that iterator has the connection to itself until it is closed.- Since:
- 5.0
-