Package org.hibernate.sql.model.ast
Interface RestrictedTableMutation<O extends MutationOperation>
-
- All Superinterfaces:
Statement,TableMutation<O>
- All Known Subinterfaces:
TableDelete,TableUpdate<O>
- All Known Implementing Classes:
AbstractRestrictedTableMutation,AbstractTableDelete,AbstractTableUpdate,OptionalTableUpdate,TableDeleteCustomSql,TableDeleteStandard,TableUpdateCustomSql,TableUpdateNoSet,TableUpdateStandard
public interface RestrictedTableMutation<O extends MutationOperation> extends TableMutation<O>
Specialized TableMutation implementation for mutations which define a where-clause
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidforEachKeyBinding(BiConsumer<Integer,ColumnValueBinding> consumer)Visit each key bindingvoidforEachOptimisticLockBinding(BiConsumer<Integer,ColumnValueBinding> consumer)Visit each optimistic-lock bindingList<ColumnValueBinding>getKeyBindings()The bindings for each key restriction (WHERE clause).default intgetNumberOfKeyBindings()The number of key bindingsdefault intgetNumberOfOptimisticLockBindings()The number of optimistic-lock bindingsList<ColumnValueBinding>getOptimisticLockBindings()All optimistic-lock bindings (WHERE clause), appended after key bindings-
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getExpectation, getMutatingTable, getMutationComment, getParameters, getTableName, isCallable
-
-
-
-
Method Detail
-
getKeyBindings
List<ColumnValueBinding> getKeyBindings()
The bindings for each key restriction (WHERE clause).
-
getNumberOfKeyBindings
default int getNumberOfKeyBindings()
The number of key bindings
-
forEachKeyBinding
void forEachKeyBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each key binding
-
getOptimisticLockBindings
List<ColumnValueBinding> getOptimisticLockBindings()
All optimistic-lock bindings (WHERE clause), appended after key bindings- See Also:
OptimisticLockType
-
getNumberOfOptimisticLockBindings
default int getNumberOfOptimisticLockBindings()
The number of optimistic-lock bindings
-
forEachOptimisticLockBinding
void forEachOptimisticLockBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each optimistic-lock binding
-
-