Class AbstractTableUpdateBuilder<O extends MutationOperation>
java.lang.Object
org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder<RestrictedTableMutation<O>>
org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder<O, RestrictedTableMutation<O>>
org.hibernate.sql.model.ast.builder.AbstractTableUpdateBuilder<O>
- All Implemented Interfaces:
SelectableConsumer, ColumnValuesTableMutationBuilder<RestrictedTableMutation<O>>, RestrictedTableMutationBuilder<O, RestrictedTableMutation<O>>, TableMutationBuilder<RestrictedTableMutation<O>>, TableUpdateBuilder<O>
- Direct Known Subclasses:
TableMergeBuilder, TableUpdateBuilderStandard
public abstract class AbstractTableUpdateBuilder<O extends MutationOperation>
extends AbstractRestrictedTableMutationBuilder<O, RestrictedTableMutation<O>>
implements TableUpdateBuilder<O>
Base support for TableUpdateBuilder implementations
-
Nested Class Summary
Nested classes/interfaces inherited from interface SelectableConsumer
SelectableConsumer.MutableSelectableMapping -
Field Summary
Fields inherited from interface TableMutationBuilder
NULL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory) AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, TableMapping tableMapping, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyColumn(String columnWriteFragment, SelectableMapping selectableMapping) Add a key columnvoidaddValueColumn(String columnWriteFragment, SelectableMapping selectableMapping) Add a column as part of the values listvoidaddValueColumn(ColumnValueBinding valueBinding) Adds a restriction, which is assumed to be based on a table key.protected List<ColumnValueBinding> The bindings for each key restriction (WHERE clause).protected List<ColumnValueBinding> protected List<ColumnValueBinding> The (non-LOB) bindings for each column being updated (SET clause)voidsetSqlComment(String sqlComment) Methods inherited from class AbstractRestrictedTableMutationBuilder
addKeyRestrictionBinding, addNonKeyRestriction, addNullOptimisticLockRestriction, addOptimisticLockRestriction, addWhereFragment, getKeyRestrictionBindings, getOptimisticLockBindings, setWhereMethods 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 ColumnValuesTableMutationBuilder
addKeyColumn, addValueColumnMethods inherited from interface RestrictedTableMutationBuilder
addKeyRestriction, addKeyRestrictionBinding, addKeyRestrictionLeniently, addKeyRestrictions, addKeyRestrictionsLeniently, addNonKeyRestriction, addNullOptimisticLockRestriction, addNullRestriction, addOptimisticLockRestriction, addOptimisticLockRestrictions, addWhereFragment, getKeyRestrictionBindings, getOptimisticLockBindingsMethods inherited from interface SelectableConsumer
accept, accept, acceptMethods inherited from interface TableMutationBuilder
buildMutation, getMutatingTableMethods inherited from interface TableUpdateBuilder
accept, setWhere
-
Constructor Details
-
AbstractTableUpdateBuilder
public AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, TableMapping tableMapping, SessionFactoryImplementor sessionFactory) -
AbstractTableUpdateBuilder
public AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
getSqlComment
-
setSqlComment
-
getKeyBindings
The bindings for each key restriction (WHERE clause).- See Also:
-
getValueBindings
The (non-LOB) bindings for each column being updated (SET clause)- See Also:
-
getLobValueBindings
- See Also:
- API Note:
- The distinction with
getValueBindings()is to help in cases e.g. where a dialect needs to order all LOB bindings after all non-LOB bindings
-
addValueColumn
Description copied from interface:ColumnValuesTableMutationBuilderAdd a column as part of the values list- Specified by:
addValueColumnin interfaceColumnValuesTableMutationBuilder<O extends MutationOperation>
-
addValueColumn
Description copied from interface:ColumnValuesTableMutationBuilderAdds a restriction, which is assumed to be based on a table key.- Specified by:
addValueColumnin interfaceColumnValuesTableMutationBuilder<O extends MutationOperation>
-
addKeyColumn
Description copied from interface:ColumnValuesTableMutationBuilderAdd a key column- Specified by:
addKeyColumnin interfaceColumnValuesTableMutationBuilder<O extends MutationOperation>
-