Class FlushOperation
java.lang.Object
org.hibernate.action.queue.spi.plan.FlushOperation
- All Implemented Interfaces:
OperationResultChecker
Represents a single SQL operation to be executed.
Uses standard MutationOperation from the SQL model package.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionFlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin) FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, boolean needsIdPrePhase) FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, StatementShapeKey shapeKey) FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, StatementShapeKey shapeKey, boolean needsIdPrePhase) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIntendedFkValue(String column, Object value) voidaddIntendedUniqueValue(String column, Object value) booleancheckResult(int affectedRowCount, int batchPosition, String sqlString, SessionFactoryImplementor sessionFactory) Check the result of a JDBC operationorg.hibernate.action.queue.internal.cyclebreak.BindingPatchgetKind()intbooleanhasIntendedFkValue(String column) booleanbooleanhasIntendedUniqueValue(String column) booleanbooleanbooleanvoidsetBindingPatch(org.hibernate.action.queue.internal.cyclebreak.BindingPatch bindingPatch) voidsetCachedInsertValuesAnalysis(ValuesAnalysis cachedInsertValuesAnalysis) voidsetCachedTableInclusionChecker(Object cachedTableInclusionChecker) voidsetExecutionSkipped(boolean executionSkipped) voidsetOrdinal(int ordinal) voidvoidsetPostExecutionCallback(PostExecutionCallback postExecutionCallback) voidsetPreExecutionCallback(PreExecutionCallback preExecutionCallback)
-
Constructor Details
-
FlushOperation
public FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin) -
FlushOperation
public FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, boolean needsIdPrePhase) -
FlushOperation
public FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, StatementShapeKey shapeKey) -
FlushOperation
public FlushOperation(TableDescriptor tableDescriptor, MutationKind kind, MutationOperation jdbcOperation, BindPlan bindPlan, int ordinal, String origin, StatementShapeKey shapeKey, boolean needsIdPrePhase)
-
-
Method Details
-
getMutatingTableDescriptor
-
getTableExpression
-
getKind
-
getShapeKey
-
getJdbcOperation
-
getBindPlan
-
getOperationResultChecker
-
checkResult
public boolean checkResult(int affectedRowCount, int batchPosition, String sqlString, SessionFactoryImplementor sessionFactory) throws SQLException Description copied from interface:OperationResultCheckerCheck the result of a JDBC operation- Specified by:
checkResultin interfaceOperationResultChecker- Parameters:
affectedRowCount- The number of rows affected by the operation, as reported by the JDBC driverbatchPosition- The execution's position within the active batch, if one; if not batching, -1 will be passed- Returns:
trueindicates an execution that is considered successful;falseindicates unsuccessful- Throws:
SQLException
-
getBindingPatch
public org.hibernate.action.queue.internal.cyclebreak.BindingPatch getBindingPatch() -
getIntendedFkValues
-
getIntendedUniqueValues
-
hasIntendedFkValues
public boolean hasIntendedFkValues() -
hasIntendedUniqueValues
public boolean hasIntendedUniqueValues() -
hasIntendedFkValue
-
hasIntendedUniqueValue
-
addIntendedFkValue
-
addIntendedUniqueValue
-
getCachedInsertValuesAnalysis
-
getCachedTableInclusionChecker
-
getOrdinal
public int getOrdinal() -
getOrigin
-
needsIdPrePhase
public boolean needsIdPrePhase() -
setBindingPatch
public void setBindingPatch(org.hibernate.action.queue.internal.cyclebreak.BindingPatch bindingPatch) -
setCachedInsertValuesAnalysis
-
setCachedTableInclusionChecker
-
setOrdinal
public void setOrdinal(int ordinal) -
setOrigin
-
getPostExecutionCallback
-
getPreExecutionCallback
-
setPreExecutionCallback
-
isExecutionSkipped
public boolean isExecutionSkipped() -
setExecutionSkipped
public void setExecutionSkipped(boolean executionSkipped) -
setPostExecutionCallback
-