Interface RestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
- All Superinterfaces:
TableMutationBuilder<M>
- All Known Subinterfaces:
TableDeleteBuilder,TableUpdateBuilder<O>
- All Known Implementing Classes:
AbstractRestrictedTableMutationBuilder,AbstractTableUpdateBuilder,CollectionRowDeleteBuilder,CollectionRowDeleteByUpdateSetNullBuilder,TableDeleteBuilderSkipped,TableDeleteBuilderStandard,TableMergeBuilder,TableUpdateBuilderSkipped,TableUpdateBuilderStandard,TableUpdateReturningBuilder
public interface RestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
extends TableMutationBuilder<M>
Specialized
TableMutationBuilder implementation for building mutations
which have a where clause.
Common operations of TableUpdateBuilder and TableDeleteBuilder.-
Field Summary
Fields inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
NULL -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping) Add restriction based on the column in the table's keydefault voidaddKeyRestriction(SelectableMapping selectableMapping) Add a restriction as long as the selectable is not a formula and is not nullabledefault voidaddKeyRestrictionLeniently(SelectableMapping selectableMapping) Add a restriction as long as the selectable is not a formuladefault voidaddKeyRestrictions(SelectableMappings selectableMappings) Add a restriction as long as the selectable is not a formula and is not nullabledefault voidaddKeyRestrictionsLeniently(SelectableMappings selectableMappings) Add a restriction as long as the selectable is not a formula and is not nullablevoidaddLiteralRestriction(String columnName, String sqlLiteralText, JdbcMapping jdbcMapping) voidaddNonKeyRestriction(ColumnValueBinding valueBinding) Adds a restriction, which is assumed to be based on a selectable that is NOT a table key, e.g.voiddefault voidaddNullRestriction(SelectableMapping column) voidaddOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping) Add restriction based on non-version optimistically-locked columndefault voidaddOptimisticLockRestriction(SelectableMapping selectableMapping) Add restriction based on non-version optimistically-locked columndefault voidaddOptimisticLockRestrictions(SelectableMappings selectableMappings) Add restriction based on non-version optimistically-locked columnvoidaddWhereFragment(String fragment) voidMethods inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
buildMutation, getMutatingTable
-
Method Details
-
addNonKeyRestriction
Adds a restriction, which is assumed to be based on a selectable that is NOT a table key, e.g. optimistic locking.- API Note:
- Be sure you know what you are doing before using this method. Generally prefer any of the other methods here for adding non-key restrictions.
-
addKeyRestrictions
Add a restriction as long as the selectable is not a formula and is not nullable -
addKeyRestrictionsLeniently
Add a restriction as long as the selectable is not a formula and is not nullable -
addOptimisticLockRestrictions
Add restriction based on non-version optimistically-locked column -
addKeyRestriction
Add a restriction as long as the selectable is not a formula and is not nullable -
addKeyRestrictionLeniently
Add a restriction as long as the selectable is not a formula -
addKeyRestriction
Add restriction based on the column in the table's key -
addNullOptimisticLockRestriction
-
addNullRestriction
-
addOptimisticLockRestriction
Add restriction based on non-version optimistically-locked column -
addOptimisticLockRestriction
void addOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping) Add restriction based on non-version optimistically-locked column -
addLiteralRestriction
-
getKeyRestrictionBindings
ColumnValueBindingList getKeyRestrictionBindings() -
getOptimisticLockBindings
ColumnValueBindingList getOptimisticLockBindings() -
setWhere
-
addWhereFragment
-