Package org.hibernate.sql.model.ast
Class AbstractRestrictedTableMutation<O extends MutationOperation>
java.lang.Object
org.hibernate.sql.model.ast.AbstractTableMutation<O>
org.hibernate.sql.model.ast.AbstractRestrictedTableMutation<O>
- All Implemented Interfaces:
Statement
,RestrictedTableMutation<O>
,TableMutation<O>
- Direct Known Subclasses:
AbstractTableDelete
,AbstractTableUpdate
,OptionalTableUpdate
,TableUpdateNoSet
public abstract class AbstractRestrictedTableMutation<O extends MutationOperation>
extends AbstractTableMutation<O>
implements RestrictedTableMutation<O>
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRestrictedTableMutation
(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachKeyBinding
(BiConsumer<Integer, ColumnValueBinding> consumer) Visit each key bindingvoid
Visit each optimistic-lock bindingvoid
forEachValueBinding
(BiConsumer<Integer, ColumnValueBinding> consumer) The bindings for each key restriction (WHERE clause).All optimistic-lock bindings (WHERE clause), appended after key bindingsMethods inherited from class org.hibernate.sql.model.ast.AbstractTableMutation
createMutationOperation, createMutationOperation, createMutationOperation, forEachParameter, forEachThing, getLoggableName, getMutatingTable, getMutationComment, getMutationTarget, getParameters, isCustomSql, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.sql.model.ast.RestrictedTableMutation
getNumberOfKeyBindings, getNumberOfOptimisticLockBindings
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getExpectation, getMutatingTable, getMutationComment, getParameters, getTableName, isCallable
-
Constructor Details
-
AbstractRestrictedTableMutation
public AbstractRestrictedTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)
-
-
Method Details
-
getKeyBindings
Description copied from interface:RestrictedTableMutation
The bindings for each key restriction (WHERE clause).- Specified by:
getKeyBindings
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
forEachKeyBinding
Description copied from interface:RestrictedTableMutation
Visit each key binding- Specified by:
forEachKeyBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
getOptimisticLockBindings
Description copied from interface:RestrictedTableMutation
All optimistic-lock bindings (WHERE clause), appended after key bindings- Specified by:
getOptimisticLockBindings
in interfaceRestrictedTableMutation<O extends MutationOperation>
- See Also:
-
forEachOptimisticLockBinding
Description copied from interface:RestrictedTableMutation
Visit each optimistic-lock binding- Specified by:
forEachOptimisticLockBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
forEachValueBinding
- Specified by:
forEachValueBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-