Top Description Fields Methods
org.hibernate.sql.model.ast.builder

public Interface RestrictedTableMutationBuilder<O extends org.hibernate.sql.model.MutationOperation, M extends org.hibernate.sql.model.ast.RestrictedTableMutation<O>>

extends TableMutationBuilder<M extends RestrictedTableMutation<O>>
Known Direct Subinterfaces
org.hibernate.sql.model.ast.builder.TableDeleteBuilder, org.hibernate.sql.model.ast.builder.TableUpdateBuilder
Known Direct Implementers
org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder
Imports
org.hibernate.metamodel.mapping.JdbcMapping, .SelectableMapping, .SelectableMappings, org.hibernate.sql.model.MutationOperation, org.hibernate.sql.model.ast.ColumnValueBindingList, .RestrictedTableMutation

Specialized TableMutationBuilder implementation for building mutations which have a where clause. Common operations of TableUpdateBuilder and TableDeleteBuilder.
Author
Steve Ebersole

Field Summary

Inherited from org.hibernate.sql.model.ast.builder.TableMutationBuilder:
NULL

Method Summary

Modifier and TypeMethod and Description
public default void
addKeyRestriction(SelectableMapping selectableMapping)

Add a restriction as long as the selectable is not a formula and is not nullable

public void
addKeyRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)

Add restriction based on the column in the table's key

public default void
addKeyRestrictionLeniently(SelectableMapping selectableMapping)

Add a restriction as long as the selectable is not a formula

public default void
addKeyRestrictions(SelectableMappings selectableMappings)

Add a restriction as long as the selectable is not a formula and is not nullable

public default void
addKeyRestrictionsLeniently(SelectableMappings selectableMappings)

Add a restriction as long as the selectable is not a formula and is not nullable

public void
addLiteralRestriction(String columnName, String sqlLiteralText, JdbcMapping jdbcMapping)

public void
public default void
addOptimisticLockRestriction(SelectableMapping selectableMapping)

Add restriction based on non-version optimistically-locked column

public void
addOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)

Add restriction based on non-version optimistically-locked column

public default void
addOptimisticLockRestrictions(SelectableMappings selectableMappings)

Add restriction based on non-version optimistically-locked column

public void
public ColumnValueBindingList
public ColumnValueBindingList
public void
setWhere(String fragment)

Inherited from org.hibernate.sql.model.ast.builder.TableMutationBuilder:
buildMutationgetMutatingTable

Method Detail

addKeyRestrictionback to summary
public default void addKeyRestriction(SelectableMapping selectableMapping)

Add a restriction as long as the selectable is not a formula and is not nullable

addKeyRestrictionback to summary
public void addKeyRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)

Add restriction based on the column in the table's key

addKeyRestrictionLenientlyback to summary
public default void addKeyRestrictionLeniently(SelectableMapping selectableMapping)

Add a restriction as long as the selectable is not a formula

addKeyRestrictionsback to summary
public default void addKeyRestrictions(SelectableMappings selectableMappings)

Add a restriction as long as the selectable is not a formula and is not nullable

addKeyRestrictionsLenientlyback to summary
public default void addKeyRestrictionsLeniently(SelectableMappings selectableMappings)

Add a restriction as long as the selectable is not a formula and is not nullable

addLiteralRestrictionback to summary
public void addLiteralRestriction(String columnName, String sqlLiteralText, JdbcMapping jdbcMapping)
addNullOptimisticLockRestrictionback to summary
public void addNullOptimisticLockRestriction(SelectableMapping column)
addOptimisticLockRestrictionback to summary
public default void addOptimisticLockRestriction(SelectableMapping selectableMapping)

Add restriction based on non-version optimistically-locked column

addOptimisticLockRestrictionback to summary
public void addOptimisticLockRestriction(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)

Add restriction based on non-version optimistically-locked column

addOptimisticLockRestrictionsback to summary
public default void addOptimisticLockRestrictions(SelectableMappings selectableMappings)

Add restriction based on non-version optimistically-locked column

addWhereFragmentback to summary
public void addWhereFragment(String fragment)
getKeyRestrictionBindingsback to summary
public ColumnValueBindingList getKeyRestrictionBindings()
getOptimisticLockBindingsback to summary
public ColumnValueBindingList getOptimisticLockBindings()
setWhereback to summary
public void setWhere(String fragment)