Class AbstractTableInsertBuilder
- java.lang.Object
-
- org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder<TableInsert>
-
- org.hibernate.sql.model.ast.builder.AbstractTableInsertBuilder
-
- All Implemented Interfaces:
SelectableConsumer
,ColumnValuesTableMutationBuilder
,TableInsertBuilder
,TableMutationBuilder<TableInsert>
- Direct Known Subclasses:
TableInsertBuilderStandard
,TableInsertReturningBuilder
public abstract class AbstractTableInsertBuilder extends AbstractTableMutationBuilder<TableInsert> implements TableInsertBuilder
Base support for TableInsertBuilder 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 AbstractTableInsertBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
AbstractTableInsertBuilder(MutationTarget<?> mutationTarget, TableMapping table, 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>
getKeyBindingList()
protected List<ColumnValueBinding>
getLobValueBindingList()
String
getSqlComment()
protected List<ColumnValueBinding>
getValueBindingList()
void
setSqlComment(String sqlComment)
-
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.metamodel.mapping.SelectableConsumer
accept, accept
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableInsertBuilder
accept
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
buildMutation, getMutatingTable
-
-
-
-
Constructor Detail
-
AbstractTableInsertBuilder
public AbstractTableInsertBuilder(MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory)
-
AbstractTableInsertBuilder
public AbstractTableInsertBuilder(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
getSqlComment
public String getSqlComment()
-
setSqlComment
public void setSqlComment(String sqlComment)
-
getKeyBindingList
protected List<ColumnValueBinding> getKeyBindingList()
-
getValueBindingList
protected List<ColumnValueBinding> getValueBindingList()
-
getLobValueBindingList
protected List<ColumnValueBinding> getLobValueBindingList()
-
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
-
-