Class BatchSQLOperationModel

java.lang.Object
org.eclipse.persistence.tools.dbws.OperationModel
org.eclipse.persistence.tools.dbws.BatchSQLOperationModel

public class BatchSQLOperationModel extends OperationModel
Model class for a batch SQL operation, i.e. two or more SQL statements that are to be executed against the database in order. The main responsibilities of this model will be to hold the List of SQL statements and build the BatchQueryOperation instance that will be responsible for executing the SQL statements.
  • Field Details

  • Constructor Details

    • BatchSQLOperationModel

      public BatchSQLOperationModel()
      The default constructor.
  • Method Details

    • getBatchSql

      public List<String> getBatchSql()
      Get the list of SQL statements to be executed.
      Returns:
      List of SQL statements to be executed
    • setBatchSql

      public void setBatchSql(List<String> sql)
      Set the list of SQL statements to be executed.
      Parameters:
      sql - List of SQL statements to be executed
    • addBatchSql

      public void addBatchSql(String sql)
      Convenience method for adding a single SQL statement to the list of statements to be executed. Note that the list will be created if necessary.
      Parameters:
      sql - SQL statement to be added to the list of statements to be executed
    • isBatchSQLOperation

      public boolean isBatchSQLOperation()
      Indicates that this is a batch SQL operation.
      Overrides:
      isBatchSQLOperation in class OperationModel
    • buildOperation

      public void buildOperation(DBWSBuilder builder)
      Build the BatchQueryOperation instance that will be responsible for executing the SQL statements.
      Overrides:
      buildOperation in class OperationModel