Package org.apache.cayenne.dba.sqlserver
Class SQLServerBatchAction
java.lang.Object
org.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.BatchAction
org.apache.cayenne.dba.sqlserver.SQLServerBatchAction
- All Implemented Interfaces:
SQLAction
- Since:
- 1.2
-
Field Summary
Fields inherited from class org.apache.cayenne.access.jdbc.BatchAction
keyRowDescriptor, query, runningAsBatch
Fields inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction
dataNode
-
Constructor Summary
ConstructorDescriptionSQLServerBatchAction
(BatchQuery batchQuery, DataNode dataNode, boolean runningAsBatch) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns whether a table has identity columns.void
performAction
(Connection connection, OperationObserver observer) Executes a query using a strategy defined by the implementation.protected void
setIdentityInsert
(Connection connection, boolean on) Methods inherited from class org.apache.cayenne.access.jdbc.BatchAction
canRunAsBatch, createTranslator, getQuery, hasGeneratedKeys, prepareStatement, processGeneratedKeys, processGeneratedKeys, runAsBatch, runAsIndividualQueries, supportsGeneratedKeys
Methods inherited from class org.apache.cayenne.access.jdbc.BaseSQLAction
getInMemoryOffset, readResultSet
-
Constructor Details
-
SQLServerBatchAction
-
-
Method Details
-
performAction
public void performAction(Connection connection, OperationObserver observer) throws SQLException, Exception Description copied from interface:SQLAction
Executes a query using a strategy defined by the implementation.- Specified by:
performAction
in interfaceSQLAction
- Overrides:
performAction
in classBatchAction
- Throws:
SQLException
Exception
-
setIdentityInsert
- Throws:
SQLException
-
expectsToOverrideIdentityColumns
protected boolean expectsToOverrideIdentityColumns()Returns whether a table has identity columns.
-