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 org.hibernate.sql.model.ast.builder.TableMutationBuilder
NULL
-
-
Constructor Summary
Constructors Constructor Description AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Add restriction based on the column in the table's keyvoid
addLiteralRestriction(String columnName, String sqlLiteralText, JdbcMapping jdbcMapping)
void
addNullOptimisticLockRestriction(SelectableMapping column)
void
addOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Add restriction based on non-version optimistically-locked columnvoid
addWhereFragment(String fragment)
ColumnValueBindingList
getKeyRestrictionBindings()
ColumnValueBindingList
getOptimisticLockBindings()
void
setWhere(String fragment)
-
Methods inherited from class org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder
addColumn, addColumn, combine, createValueBinding, createValueBinding, getJdbcServices, getMutatingTable, getMutationTarget, getParameters, getSessionFactory, 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.builder.RestrictedTableMutationBuilder
addKeyRestriction, addKeyRestrictionLeniently, addKeyRestrictions, addKeyRestrictionsLeniently, addOptimisticLockRestriction, addOptimisticLockRestrictions
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
buildMutation, getMutatingTable
-
-
-
-
Constructor Detail
-
AbstractRestrictedTableMutationBuilder
public AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory)
-
AbstractRestrictedTableMutationBuilder
public AbstractRestrictedTableMutationBuilder(MutationType mutationType, MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getKeyRestrictionBindings
public ColumnValueBindingList getKeyRestrictionBindings()
- Specified by:
getKeyRestrictionBindings
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
getOptimisticLockBindings
public ColumnValueBindingList getOptimisticLockBindings()
- Specified by:
getOptimisticLockBindings
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
addKeyRestriction
public void addKeyRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Description copied from interface:RestrictedTableMutationBuilder
Add restriction based on the column in the table's key- Specified by:
addKeyRestriction
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
addNullOptimisticLockRestriction
public void addNullOptimisticLockRestriction(SelectableMapping column)
- Specified by:
addNullOptimisticLockRestriction
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
addOptimisticLockRestriction
public void addOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Description copied from interface:RestrictedTableMutationBuilder
Add restriction based on non-version optimistically-locked column- Specified by:
addOptimisticLockRestriction
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
addLiteralRestriction
public void addLiteralRestriction(String columnName, String sqlLiteralText, JdbcMapping jdbcMapping)
- Specified by:
addLiteralRestriction
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
setWhere
public void setWhere(String fragment)
- Specified by:
setWhere
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
addWhereFragment
public void addWhereFragment(String fragment)
- Specified by:
addWhereFragment
in interfaceRestrictedTableMutationBuilder<O extends MutationOperation,M extends RestrictedTableMutation<O>>
-
-