Class ModifyQuery

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.

See Also:
Author:
Yvon Lavoie
  • Field Details

    • modifyRow

      protected org.eclipse.persistence.internal.sessions.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

      public ModifyQuery()
  • Method Details

    • getModifyRow

      public org.eclipse.persistence.internal.sessions.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(org.eclipse.persistence.internal.sessions.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.