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
Constructors Constructor Description AbstractRestrictedTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachKeyBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each key bindingvoid
forEachOptimisticLockBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each optimistic-lock bindingvoid
forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
List<ColumnValueBinding>
getKeyBindings()
The bindings for each key restriction (WHERE clause).List<ColumnValueBinding>
getOptimisticLockBindings()
All optimistic-lock bindings (WHERE clause), appended after key bindings-
Methods 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 Detail
-
AbstractRestrictedTableMutation
public AbstractRestrictedTableMutation(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)
-
-
Method Detail
-
getKeyBindings
public List<ColumnValueBinding> getKeyBindings()
Description copied from interface:RestrictedTableMutation
The bindings for each key restriction (WHERE clause).- Specified by:
getKeyBindings
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
forEachKeyBinding
public void forEachKeyBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Description copied from interface:RestrictedTableMutation
Visit each key binding- Specified by:
forEachKeyBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
getOptimisticLockBindings
public List<ColumnValueBinding> 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:
OptimisticLockType
-
forEachOptimisticLockBinding
public void forEachOptimisticLockBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Description copied from interface:RestrictedTableMutation
Visit each optimistic-lock binding- Specified by:
forEachOptimisticLockBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
forEachValueBinding
public void forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
- Specified by:
forEachValueBinding
in interfaceRestrictedTableMutation<O extends MutationOperation>
-
-