# 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`

public class SQLServerBatchAction extends BatchAction

Since:
  1.2

- ## Field Summary

  ### Fields inherited from class BatchAction

  `keyColumns, query, runningAsBatch`

  ### Fields inherited from class BaseSQLAction

  `dataNode`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SQLServerBatchAction(BatchQuery batchQuery, DataNode dataNode, boolean runningAsBatch)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `expectsToOverrideIdentityColumns()`
  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 BatchAction

  `canRunAsBatch, getQuery, hasGeneratedKeys, prepareStatement, processGeneratedKeys, processGeneratedKeys, rowBindings, runAsBatch, runAsIndividualQueries, supportsGeneratedKeys`

  ### Methods inherited from class BaseSQLAction

  `getInMemoryOffset, readResultSet`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SQLServerBatchAction

    public SQLServerBatchAction(BatchQuery batchQuery, DataNode dataNode, boolean runningAsBatch)

- ## Method Details

  - ### performAction

    public void performAction(Connection connection, OperationObserver observer) throws Exception
    Description copied from interface: `SQLAction`
    Executes a query using a strategy defined by the implementation.
    Specified by:
      `performAction` in interface `SQLAction`
    Overrides:
      `performAction` in class `BatchAction`
    Throws:
      `Exception`

  - ### setIdentityInsert

    protected void setIdentityInsert(Connection connection, boolean on) throws SQLException
    Throws:
      `SQLException`

  - ### expectsToOverrideIdentityColumns

    protected boolean expectsToOverrideIdentityColumns()
    Returns whether a table has identity columns.