Package org.hibernate.sql.model.internal
Class OptionalTableUpdate
java.lang.Object
org.hibernate.sql.model.ast.AbstractTableMutation<MutationOperation>
org.hibernate.sql.model.ast.AbstractRestrictedTableMutation<MutationOperation>
org.hibernate.sql.model.internal.OptionalTableUpdate
- All Implemented Interfaces:
Statement,RestrictedTableMutation<MutationOperation>,TableMutation<MutationOperation>
public class OptionalTableUpdate
extends AbstractRestrictedTableMutation<MutationOperation>
implements RestrictedTableMutation<MutationOperation>
- API Note:
- Implements
TableUpdatebecause it is fundamentally an update
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, 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) The validation expectation for the mutationprotected StringbooleanIs the mutation a procedure/function?booleanMethods inherited from class org.hibernate.sql.model.ast.AbstractRestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getOptimisticLockBindingsMethods inherited from class org.hibernate.sql.model.ast.AbstractTableMutation
createMutationOperation, forEachThing, getMutatingTable, getMutationComment, getParameters, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.sql.model.ast.RestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getNumberOfKeyBindings, getNumberOfOptimisticLockBindings, getOptimisticLockBindingsMethods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, getMutatingTable, getMutationComment, getParameters, getTableName
-
Constructor Details
-
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) -
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, 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>
-
getMutationTarget
- Overrides:
getMutationTargetin 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
-
forEachValueBinding
- Specified by:
forEachValueBindingin interfaceRestrictedTableMutation<MutationOperation>- Overrides:
forEachValueBindingin classAbstractRestrictedTableMutation<MutationOperation>
-
accept
Description copied from interface:StatementVisitation -
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
-