Class AbstractRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
java.lang.Object
org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder<M>
org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder<O,M>
- All Implemented Interfaces:
RestrictedTableMutationBuilder<O,M>, TableMutationBuilder<M>
- Direct Known Subclasses:
AbstractTableUpdateBuilder, TableDeleteBuilderStandard
public abstract class AbstractRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
extends AbstractTableMutationBuilder<M>
implements RestrictedTableMutationBuilder<O,M>
Specialization of TableMutationBuilder for mutations which contain a
restriction.
-
Field Summary
Fields inherited from interface TableMutationBuilder
NULL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory) AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyRestrictionBinding(SelectableMapping selectableMapping) Add a restriction as long as the selectable is not a formula and is not nullablevoidaddNonKeyRestriction(ColumnValueBinding valueBinding) Adds a restriction, which is assumed to be based on a selectable that is NOT a table key, e.g.voidvoidaddOptimisticLockRestriction(SelectableMapping selectableMapping) Add restriction based on non-version optimistically-locked columnvoidaddWhereFragment(String fragment) voidMethods inherited from class AbstractTableMutationBuilder
addColumn, combine, createValueBinding, createValueBinding, getJdbcServices, getMutatingTable, getMutationTarget, getParameters, getSessionFactory, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface RestrictedTableMutationBuilder
addKeyRestriction, addKeyRestrictionLeniently, addKeyRestrictions, addKeyRestrictionsLeniently, addNullRestriction, addOptimisticLockRestrictionsMethods inherited from interface TableMutationBuilder
buildMutation, getMutatingTable
-
Constructor Details
-
AbstractRestrictedTableMutationBuilder
public AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) -
AbstractRestrictedTableMutationBuilder
public AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
getKeyRestrictionBindings
- Specified by:
getKeyRestrictionBindingsin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
getOptimisticLockBindings
- Specified by:
getOptimisticLockBindingsin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
addNonKeyRestriction
Description copied from interface:RestrictedTableMutationBuilderAdds a restriction, which is assumed to be based on a selectable that is NOT a table key, e.g. optimistic locking.- Specified by:
addNonKeyRestrictionin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
addKeyRestrictionBinding
Description copied from interface:RestrictedTableMutationBuilderAdd a restriction as long as the selectable is not a formula and is not nullable- Specified by:
addKeyRestrictionBindingin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
addNullOptimisticLockRestriction
- Specified by:
addNullOptimisticLockRestrictionin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
addOptimisticLockRestriction
Description copied from interface:RestrictedTableMutationBuilderAdd restriction based on non-version optimistically-locked column- Specified by:
addOptimisticLockRestrictionin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
setWhere
- Specified by:
setWherein interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-
addWhereFragment
- Specified by:
addWhereFragmentin interfaceRestrictedTableMutationBuilder<O extends MutationOperation, M extends RestrictedTableMutation<O>>
-