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 JdbcInsertMutation
createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Intended for use fromSqlAstTranslator
void
forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each value bindingExpectation
getExpectation()
The validation expectation for the mutationprotected String
getLoggableName()
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:
getLoggableName
in classAbstractTableMutation<JdbcInsertMutation>
-
getExpectation
public Expectation getExpectation()
Description copied from interface:TableMutation
The validation expectation for the mutation- Specified by:
getExpectation
in interfaceTableMutation<JdbcInsertMutation>
-
getValueBindings
public List<ColumnValueBinding> getValueBindings()
Description copied from interface:TableInsert
The value bindings for each column, including table key(s)- Specified by:
getValueBindings
in interfaceTableInsert
-
forEachValueBinding
public void forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Description copied from interface:TableInsert
Visit each value binding- Specified by:
forEachValueBinding
in interfaceTableInsert
- See Also:
TableInsert.getValueBindings()
-
createMutationOperation
protected JdbcInsertMutation createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Description copied from class:AbstractTableMutation
Intended for use fromSqlAstTranslator
- Specified by:
createMutationOperation
in classAbstractTableMutation<JdbcInsertMutation>
effectiveBinders
- The parameter binders effective for this table mutation
-
-