Class FlushOperation

java.lang.Object
org.hibernate.action.queue.spi.plan.FlushOperation
All Implemented Interfaces:
OperationResultChecker

@Incubating public class FlushOperation extends Object implements OperationResultChecker

Represents a single SQL operation to be executed.

Uses standard MutationOperation from the SQL model package.

Since:
8.0
  • Constructor Details

  • Method Details

    • getMutatingTableDescriptor

      public TableDescriptor getMutatingTableDescriptor()
    • getTableExpression

      public String getTableExpression()
    • getKind

      public MutationKind getKind()
    • getShapeKey

      public StatementShapeKey getShapeKey()
    • getJdbcOperation

      public MutationOperation getJdbcOperation()
    • getBindPlan

      public BindPlan getBindPlan()
    • getOperationResultChecker

      public OperationResultChecker getOperationResultChecker()
    • checkResult

      public boolean checkResult(int affectedRowCount, int batchPosition, String sqlString, SessionFactoryImplementor sessionFactory) throws SQLException
      Description copied from interface: OperationResultChecker
      Check the result of a JDBC operation
      Specified by:
      checkResult in interface OperationResultChecker
      Parameters:
      affectedRowCount - The number of rows affected by the operation, as reported by the JDBC driver
      batchPosition - The execution's position within the active batch, if one; if not batching, -1 will be passed
      Returns:
      true indicates an execution that is considered successful; false indicates unsuccessful
      Throws:
      SQLException
    • getBindingPatch

      public org.hibernate.action.queue.internal.cyclebreak.BindingPatch getBindingPatch()
    • getIntendedFkValues

      public Map<String,Object> getIntendedFkValues()
    • getIntendedUniqueValues

      public Map<String,Object> getIntendedUniqueValues()
    • hasIntendedFkValues

      public boolean hasIntendedFkValues()
    • hasIntendedUniqueValues

      public boolean hasIntendedUniqueValues()
    • hasIntendedFkValue

      public boolean hasIntendedFkValue(String column)
    • hasIntendedUniqueValue

      public boolean hasIntendedUniqueValue(String column)
    • addIntendedFkValue

      public void addIntendedFkValue(String column, Object value)
    • addIntendedUniqueValue

      public void addIntendedUniqueValue(String column, Object value)
    • getCachedInsertValuesAnalysis

      public Object getCachedInsertValuesAnalysis()
    • getCachedTableInclusionChecker

      public Object getCachedTableInclusionChecker()
    • getOrdinal

      public int getOrdinal()
    • getOrigin

      public String getOrigin()
    • needsIdPrePhase

      public boolean needsIdPrePhase()
    • setBindingPatch

      public void setBindingPatch(org.hibernate.action.queue.internal.cyclebreak.BindingPatch bindingPatch)
    • setCachedInsertValuesAnalysis

      public void setCachedInsertValuesAnalysis(ValuesAnalysis cachedInsertValuesAnalysis)
    • setCachedTableInclusionChecker

      public void setCachedTableInclusionChecker(Object cachedTableInclusionChecker)
    • setOrdinal

      public void setOrdinal(int ordinal)
    • setOrigin

      public void setOrigin(String origin)
    • getPostExecutionCallback

      public PostExecutionCallback getPostExecutionCallback()
    • getPreExecutionCallback

      public PreExecutionCallback getPreExecutionCallback()
    • setPreExecutionCallback

      public void setPreExecutionCallback(PreExecutionCallback preExecutionCallback)
    • isExecutionSkipped

      public boolean isExecutionSkipped()
    • setExecutionSkipped

      public void setExecutionSkipped(boolean executionSkipped)
    • setPostExecutionCallback

      public void setPostExecutionCallback(PostExecutionCallback postExecutionCallback)