Class OptionalTableUpdate
java.lang.Object
org.hibernate.sql.ast.spi.model.AbstractTableMutation<MutationOperation>
org.hibernate.sql.ast.spi.model.AbstractRestrictedTableMutation<MutationOperation>
org.hibernate.sql.ast.spi.model.OptionalTableUpdate
- All Implemented Interfaces:
AssigningTableMutation<MutationOperation>, LogicalTableUpdate<MutationOperation>, RestrictedTableMutation<MutationOperation>, TableMutation<MutationOperation>, SqlAstNode, Statement
public class OptionalTableUpdate
extends AbstractRestrictedTableMutation<MutationOperation>
implements LogicalTableUpdate<MutationOperation>
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget mutationTarget, boolean versionedTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget mutationTarget, String comment, boolean versionedTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker walker) Visitationprotected MutationOperationcreateMutationOperation(TableMapping tableDetails, String updateSql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslatorcreateMutationOperation(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) voidforEachParameter(Consumer<ColumnValueParameter> consumer) Visit the JDBC parameters associated with this mutation.voidforEachValueBinding(BiConsumer<Integer, ColumnValueBinding> consumer) Visit each value bindingThe validation expectation for the mutationprotected StringThe value bindings for each column.booleanIs the mutation a procedure/function?booleanMethods inherited from class AbstractRestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getOptimisticLockBindingsMethods inherited from class AbstractTableMutation
createMutationOperation, forEachThing, getMutatingTable, getMutationComment, getMutationTarget, getParameters, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AssigningTableMutation
getNumberOfValueBindingsMethods inherited from interface RestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getNumberOfKeyBindings, getNumberOfOptimisticLockBindings, getOptimisticLockBindingsMethods inherited from interface Statement
isSelectionMethods inherited from interface TableMutation
createMutationOperation, getMutatingTable, getMutationComment, getParameters, getTableName
-
Constructor Details
-
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget mutationTarget, boolean versionedTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) -
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget mutationTarget, String comment, boolean versionedTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
-
-
Method Details
-
getLoggableName
- Specified by:
getLoggableNamein classAbstractTableMutation<MutationOperation>
-
isCustomSql
public boolean isCustomSql()- Overrides:
isCustomSqlin classAbstractTableMutation<MutationOperation>
-
isCallable
public boolean isCallable()Description copied from interface:TableMutationIs the mutation a procedure/function?- Specified by:
isCallablein interfaceTableMutation<MutationOperation>
-
getExpectation
Description copied from interface:TableMutationThe validation expectation for the mutation- Specified by:
getExpectationin interfaceTableMutation<MutationOperation>
-
forEachParameter
Description copied from interface:TableMutationVisit the JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement.- Specified by:
forEachParameterin interfaceTableMutation<MutationOperation>- Overrides:
forEachParameterin classAbstractTableMutation<MutationOperation>- See Also:
-
getValueBindings
Description copied from interface:AssigningTableMutationThe value bindings for each column.- Specified by:
getValueBindingsin interfaceAssigningTableMutation<MutationOperation>
-
forEachValueBinding
Description copied from interface:AssigningTableMutationVisit each value binding- Specified by:
forEachValueBindingin interfaceAssigningTableMutation<MutationOperation>
-
accept
Description copied from interface:StatementVisitation- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceStatement
-
createMutationOperation
public MutationOperation createMutationOperation(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) - Specified by:
createMutationOperationin interfaceTableMutation<MutationOperation>- Overrides:
createMutationOperationin classAbstractTableMutation<MutationOperation>
-
createMutationOperation
protected MutationOperation createMutationOperation(TableMapping tableDetails, String updateSql, List<JdbcParameterBinder> effectiveBinders) Description copied from class:AbstractTableMutationIntended for use fromSqlAstTranslator- Specified by:
createMutationOperationin classAbstractTableMutation<MutationOperation>- Parameters:
effectiveBinders- The parameter binders effective for this table mutation
-