Package org.apache.cayenne.dba.sqlserver
Class SQLServerSelectAction
java.lang.Object
org.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.SelectAction
org.apache.cayenne.dba.sqlserver.SQLServerSelectAction
- All Implemented Interfaces:
SQLAction
- Since:
- 4.2
-
Field Summary
Fields inherited from class org.apache.cayenne.access.jdbc.SelectAction
query, queryMetadata
Fields inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction
dataNode
-
Constructor Summary
ConstructorDescriptionSQLServerSelectAction
(Select<?> query, DataNode dataNode, boolean needsInMemoryOffset) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getInMemoryOffset
(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.Methods inherited from class org.apache.cayenne.access.jdbc.SelectAction
performAction
Methods inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction
readResultSet
-
Constructor Details
-
SQLServerSelectAction
-
-
Method Details
-
getInMemoryOffset
protected int getInMemoryOffset(int queryOffset) Description copied from class:BaseSQLAction
Returns a value of the offset that will be used to rewind the ResultSet within the SQL action before reading the result rows. The default implementation returns 'queryOffset' argument. If the adapter supports setting offset at the SQL level, this method must be overridden to return zero to suppress manual offset.- Overrides:
getInMemoryOffset
in classBaseSQLAction
-