java.lang.Object
org.eclipse.persistence.queries.DatabaseQuery
org.eclipse.persistence.queries.ModifyQuery
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
DataModifyQuery, ModifyAllQuery, ObjectLevelModifyQuery

public abstract class ModifyQuery extends DatabaseQuery

Purpose: Abstract class for all modify queries. Currently contains no behavior.

Since:
TOPLink/Java 1.0
See Also:
  • Field Details

    • modifyRow

      protected AbstractRecord modifyRow
    • forceBatchStatementExecution

      protected boolean forceBatchStatementExecution
    • isBatchExecutionSupported

      protected boolean isBatchExecutionSupported
      Define if this query is compatible with batch writing. Some queries, such as DDL are not compatible.
  • Constructor Details

    • ModifyQuery

      protected ModifyQuery()
      Default constructor.
  • Method Details

    • getModifyRow

      public AbstractRecord getModifyRow()
      INTERNAL: Return the modify row
    • isModifyQuery

      public boolean isModifyQuery()
      PUBLIC: Return if this is a modify query.
      Overrides:
      isModifyQuery in class DatabaseQuery
    • setModifyRow

      public void setModifyRow(AbstractRecord row)
      INTERNAL: Set the modify row
    • setForceBatchStatementExecution

      public void setForceBatchStatementExecution(boolean value)
      PUBLIC: Allow setting this query to be the last statement added to a batch statement and ensure it is flushed on execution. Setting to true will cause the batch statement to be sent to the database. Default setting of false causes the batch statement execution to be delayed to allow additional statements to be added. Setting to true reduces the efficiency of batch writing. This has no effect if batch writing is not enabled.
    • forceBatchStatementExecution

      public boolean forceBatchStatementExecution()
      PUBLIC: Returns if this query has been set to flush on execution.
      See Also:
    • isBatchExecutionSupported

      public boolean isBatchExecutionSupported()
      PUBLIC: Return if this query is compatible with batch writing. Some queries, such as DDL are not compatible.
    • setIsBatchExecutionSupported

      public void setIsBatchExecutionSupported(boolean isBatchExecutionSupported)
      PUBLIC: Set if this query is compatible with batch writing. Some queries, such as DDL are not compatible.