Class AbstractTableUpdateBuilder<O extends MutationOperation>
- java.lang.Object
-
- org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder<M>
-
- org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder<O,RestrictedTableMutation<O>>
-
- org.hibernate.sql.model.ast.builder.AbstractTableUpdateBuilder<O>
-
- All Implemented Interfaces:
SelectableConsumer
,ColumnValuesTableMutationBuilder
,RestrictedTableMutationBuilder<O,RestrictedTableMutation<O>>
,TableMutationBuilder<RestrictedTableMutation<O>>
,TableUpdateBuilder<O>
- Direct Known Subclasses:
TableMergeBuilder
,TableUpdateBuilderStandard
,TableUpdateReturningBuilder
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 org.hibernate.metamodel.mapping.SelectableConsumer
SelectableConsumer.MutableSelectableMapping
-
-
Field Summary
-
Fields inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
NULL
-
-
Constructor Summary
Constructors Constructor Description AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, TableMapping tableMapping, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyColumn(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Add a key columnvoid
addValueColumn(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping, boolean isLob)
Add a column as part of the values listprotected List<ColumnValueBinding>
getKeyBindings()
The bindings for each key restriction (WHERE clause).protected List<ColumnValueBinding>
getLobValueBindings()
String
getSqlComment()
protected List<ColumnValueBinding>
getValueBindings()
The (non-LOB) bindings for each column being updated (SET clause)void
setSqlComment(String sqlComment)
-
Methods inherited from class org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder
addKeyRestriction, addLiteralRestriction, addNullOptimisticLockRestriction, addOptimisticLockRestriction, addWhereFragment, getKeyRestrictionBindings, getOptimisticLockBindings, setWhere
-
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.ColumnValuesTableMutationBuilder
addKeyColumn, addValueColumn, addValueColumn
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.RestrictedTableMutationBuilder
addKeyRestriction, addKeyRestriction, addKeyRestrictionLeniently, addKeyRestrictions, addKeyRestrictionsLeniently, addLiteralRestriction, addNullOptimisticLockRestriction, addOptimisticLockRestriction, addOptimisticLockRestriction, addOptimisticLockRestrictions, addWhereFragment, getKeyRestrictionBindings, getOptimisticLockBindings
-
Methods inherited from interface org.hibernate.metamodel.mapping.SelectableConsumer
accept, accept
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
buildMutation, getMutatingTable
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableUpdateBuilder
accept, setWhere
-
-
-
-
Constructor Detail
-
AbstractTableUpdateBuilder
public AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, TableMapping tableMapping, SessionFactoryImplementor sessionFactory)
-
AbstractTableUpdateBuilder
public AbstractTableUpdateBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getSqlComment
public String getSqlComment()
-
setSqlComment
public void setSqlComment(String sqlComment)
-
getKeyBindings
protected List<ColumnValueBinding> getKeyBindings()
The bindings for each key restriction (WHERE clause).- See Also:
RestrictedTableMutation.getKeyBindings()
-
getValueBindings
protected List<ColumnValueBinding> getValueBindings()
The (non-LOB) bindings for each column being updated (SET clause)- See Also:
TableUpdate.getValueBindings()
-
getLobValueBindings
protected List<ColumnValueBinding> getLobValueBindings()
- See Also:
TableUpdate.getValueBindings()
- 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
public void addValueColumn(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping, boolean isLob)
Description copied from interface:ColumnValuesTableMutationBuilder
Add a column as part of the values list- Specified by:
addValueColumn
in interfaceColumnValuesTableMutationBuilder
-
addKeyColumn
public void addKeyColumn(String columnName, String columnWriteFragment, JdbcMapping jdbcMapping)
Description copied from interface:ColumnValuesTableMutationBuilder
Add a key column- Specified by:
addKeyColumn
in interfaceColumnValuesTableMutationBuilder
-
-