Class AbstractTableMutationBuilder<M extends TableMutation<?>>
java.lang.Object
org.hibernate.sql.ast.spi.model.builder.AbstractTableMutationBuilder<M>
- All Implemented Interfaces:
TableMutationBuilder<M>
- Direct Known Subclasses:
AbstractRestrictedTableMutationBuilder, AbstractTableInsertBuilder
@SPI(IMPLEMENT)
public abstract class AbstractTableMutationBuilder<M extends TableMutation<?>>
extends Object
implements TableMutationBuilder<M>
Base for provider-owned TableMutationBuilder implementations.
Extend this class to collect JDBC parameters and column bindings for one
table mutation. Choose the constructor accepting a TableMapping when the
builder should create the mutating table reference, or supply an existing
MutatingTableReference when reference identity must be preserved.
- Since:
- 8.0
-
Field Summary
Fields inherited from interface TableMutationBuilder
NOT_NULL, NULL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTableMutationBuilder(MutationType mutationType, MutationTarget mutationTarget, MutatingTableReference mutatingTable, SessionFactoryImplementor sessionFactory) Create a builder using the supplied mutating-table reference.AbstractTableMutationBuilder(MutationType mutationType, MutationTarget mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) Create a builder which owns a new reference totable. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddColumn(String columnWriteFragment, SelectableMapping selectableMapping, List<ColumnValueBinding> list) protected final <T> List<T> protected ColumnValueBindingcreateValueBinding(String columnWriteFragment, SelectableMapping selectableMapping) protected ColumnValueBindingcreateValueBinding(String customWriteExpression, SelectableMapping selectableMapping, ParameterUsage parameterUsage) protected JdbcServicesReference (in the SQL AST sense) to the mutating tableprotected MutationTargetprotected ColumnValueParameterListprotected SessionFactoryImplementortoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface TableMutationBuilder
buildMutation, hasValueBindings
-
Constructor Details
-
AbstractTableMutationBuilder
@SPI(IMPLEMENT) public AbstractTableMutationBuilder(MutationType mutationType, MutationTarget mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) Create a builder which owns a new reference totable. -
AbstractTableMutationBuilder
@SPI(IMPLEMENT) public AbstractTableMutationBuilder(MutationType mutationType, MutationTarget mutationTarget, MutatingTableReference mutatingTable, SessionFactoryImplementor sessionFactory) Create a builder using the supplied mutating-table reference.
-
-
Method Details
-
getMutationTarget
-
getMutatingTable
Description copied from interface:TableMutationBuilderReference (in the SQL AST sense) to the mutating table- Specified by:
getMutatingTablein interfaceTableMutationBuilder<M extends TableMutation<?>>
-
getParameters
-
getSessionFactory
-
getJdbcServices
-
addColumn
protected void addColumn(String columnWriteFragment, SelectableMapping selectableMapping, List<ColumnValueBinding> list) -
createValueBinding
protected ColumnValueBinding createValueBinding(String columnWriteFragment, SelectableMapping selectableMapping) -
createValueBinding
protected ColumnValueBinding createValueBinding(String customWriteExpression, SelectableMapping selectableMapping, ParameterUsage parameterUsage) -
combine
-
toString
-