# Class PostgresBatchAction

java.lang.Object
org.apache.cayenne.access.jdbc.BaseSQLAction
org.apache.cayenne.access.jdbc.BatchAction
org.apache.cayenne.dba.postgres.PostgresBatchAction

All Implemented Interfaces:
  `SQLAction`

public class PostgresBatchAction extends BatchAction

- ## Field Summary

  ### Fields inherited from class BatchAction

  `keyColumns, query, runningAsBatch`

  ### Fields inherited from class BaseSQLAction

  `dataNode`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PostgresBatchAction(BatchQuery query, DataNode dataNode, boolean runningAsBatch)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected PreparedStatement`
  `prepareStatement(Connection connection, String queryStr, DbAdapter adapter, boolean generatedKeys)`

  ### Methods inherited from class BatchAction

  `canRunAsBatch, getQuery, hasGeneratedKeys, performAction, 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

  - ### PostgresBatchAction

    public PostgresBatchAction(BatchQuery query, DataNode dataNode, boolean runningAsBatch)
    Since:
      4.0

- ## Method Details

  - ### prepareStatement

    protected PreparedStatement prepareStatement(Connection connection, String queryStr, DbAdapter adapter, boolean generatedKeys) throws SQLException
    Overrides:
      `prepareStatement` in class `BatchAction`
    Throws:
      `SQLException`