Package org.hibernate.sql.model.ast
Class AbstractTableInsert
- java.lang.Object
-
- org.hibernate.sql.model.ast.AbstractTableMutation<JdbcInsertMutation>
-
- org.hibernate.sql.model.ast.AbstractTableInsert
-
- All Implemented Interfaces:
Statement,TableInsert,TableMutation<JdbcInsertMutation>
- Direct Known Subclasses:
TableInsertCustomSql,TableInsertStandard
public abstract class AbstractTableInsert extends AbstractTableMutation<JdbcInsertMutation> implements TableInsert
-
-
Constructor Summary
Constructors Constructor Description AbstractTableInsert(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueParameter> parameters, List<ColumnValueBinding> valueBindings)AbstractTableInsert(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueParameter> parameters, List<ColumnValueBinding> valueBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JdbcInsertMutationcreateMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)Intended for use fromSqlAstTranslatorvoidforEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)Visit each value bindingExpectationgetExpectation()The validation expectation for the mutationprotected StringgetLoggableName()List<ColumnValueBinding>getValueBindings()The value bindings for each column, including table key(s)-
Methods inherited from class org.hibernate.sql.model.ast.AbstractTableMutation
createMutationOperation, createMutationOperation, forEachParameter, forEachThing, getMutatingTable, getMutationComment, getMutationTarget, getParameters, isCustomSql, 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.TableInsert
forEachReturningColumn, getNumberOfReturningColumns, getNumberOfValueBindings, getReturningColumns
-
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getMutatingTable, getMutationComment, getParameters, getTableName, isCallable
-
-
-
-
Constructor Detail
-
AbstractTableInsert
public AbstractTableInsert(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueParameter> parameters, List<ColumnValueBinding> valueBindings)
-
AbstractTableInsert
public AbstractTableInsert(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueParameter> parameters, List<ColumnValueBinding> valueBindings)
-
-
Method Detail
-
getLoggableName
protected String getLoggableName()
- Specified by:
getLoggableNamein classAbstractTableMutation<JdbcInsertMutation>
-
getExpectation
public Expectation getExpectation()
Description copied from interface:TableMutationThe validation expectation for the mutation- Specified by:
getExpectationin interfaceTableMutation<JdbcInsertMutation>
-
getValueBindings
public List<ColumnValueBinding> getValueBindings()
Description copied from interface:TableInsertThe value bindings for each column, including table key(s)- Specified by:
getValueBindingsin interfaceTableInsert
-
forEachValueBinding
public void forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Description copied from interface:TableInsertVisit each value binding- Specified by:
forEachValueBindingin interfaceTableInsert- See Also:
TableInsert.getValueBindings()
-
createMutationOperation
protected JdbcInsertMutation createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Description copied from class:AbstractTableMutationIntended for use fromSqlAstTranslator- Specified by:
createMutationOperationin classAbstractTableMutation<JdbcInsertMutation>effectiveBinders- The parameter binders effective for this table mutation
-
-