Class AbstractTableInsertBuilder
java.lang.Object
org.hibernate.sql.ast.spi.model.builder.AbstractTableMutationBuilder<TableInsert>
org.hibernate.sql.ast.spi.model.builder.AbstractTableInsertBuilder
- All Implemented Interfaces:
SelectableConsumer, AssigningTableMutationBuilder<TableInsert>, TableInsertBuilder, TableMutationBuilder<TableInsert>
- Direct Known Subclasses:
TableInsertBuilderStandard, TableInsertReturningBuilder
@SPI(IMPLEMENT)
public abstract class AbstractTableInsertBuilder
extends AbstractTableMutationBuilder<TableInsert>
implements TableInsertBuilder
Base for provider-owned TableInsertBuilder implementations.
Extend this class to customize construction of an insert operation while retaining standard parameter, assignment, and LOB-ordering behavior.
- Since:
- 8.0
-
Field Summary
Fields inherited from interface TableMutationBuilder
NOT_NULL, NULL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTableInsertBuilder(MutationTarget mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory) Create an insert builder using the supplied mutating-table reference.AbstractTableInsertBuilder(MutationTarget mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) Create an insert builder which owns a new reference totable. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnAssignment(SelectableMapping columnMapping) Adds a column assignment defined bycolumnMapping = {columnMapping.getWriteExpression()}voidaddColumnAssignment(SelectableMapping columnMapping, String assignment) Adds a column assignment defined bycolumnMapping = assignmentvoidaddColumnAssignment(ColumnValueBinding valueBinding) Adds a column assignment defined by the givencolumnValueBinding, which represents a column and its assignment .protected List<ColumnValueBinding> protected List<ColumnValueBinding> booleanWhether this builder currently contains any assignment bindings.booleanhasColumnAssignment(SelectableMapping selectableMapping) voidsetSqlComment(String sqlComment) Methods 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 AssigningTableMutationBuilder
addColumnAssignment, addValueColumn, addValueColumn, addValueColumn, addValueColumn, hasValueBindingsMethods inherited from interface SelectableConsumer
accept, accept, acceptMethods inherited from interface TableInsertBuilder
acceptMethods inherited from interface TableMutationBuilder
buildMutation, getMutatingTable
-
Constructor Details
-
AbstractTableInsertBuilder
@SPI(IMPLEMENT) public AbstractTableInsertBuilder(MutationTarget mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory) Create an insert builder which owns a new reference totable. -
AbstractTableInsertBuilder
@SPI(IMPLEMENT) public AbstractTableInsertBuilder(MutationTarget mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory) Create an insert builder using the supplied mutating-table reference.
-
-
Method Details
-
getSqlComment
-
setSqlComment
-
getValueBindingList
-
getLobValueBindingList
-
addColumnAssignment
Description copied from interface:AssigningTableMutationBuilderAdds a column assignment defined by the givencolumnValueBinding, which represents a column and its assignment .- Specified by:
addColumnAssignmentin interfaceAssigningTableMutationBuilder<TableInsert>
-
addColumnAssignment
Description copied from interface:AssigningTableMutationBuilderAdds a column assignment defined bycolumnMapping = {columnMapping.getWriteExpression()}- Specified by:
addColumnAssignmentin interfaceAssigningTableMutationBuilder<TableInsert>
-
addColumnAssignment
Description copied from interface:AssigningTableMutationBuilderAdds a column assignment defined bycolumnMapping = assignment- Specified by:
addColumnAssignmentin interfaceAssigningTableMutationBuilder<TableInsert>
-
hasAssignmentBindings
public boolean hasAssignmentBindings()Description copied from interface:AssigningTableMutationBuilderWhether this builder currently contains any assignment bindings.- Specified by:
hasAssignmentBindingsin interfaceAssigningTableMutationBuilder<TableInsert>
-
hasColumnAssignment
- Specified by:
hasColumnAssignmentin interfaceTableInsertBuilder
-