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
ConstructorsConstructorDescriptionAbstractTableInsert
(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
Modifier and TypeMethodDescriptionprotected JdbcInsertMutation
createMutationOperation
(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslator
void
forEachValueBinding
(BiConsumer<Integer, ColumnValueBinding> consumer) Visit each value bindingThe validation expectation for the mutationprotected String
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 Details
-
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 Details
-
getLoggableName
- Specified by:
getLoggableName
in classAbstractTableMutation<JdbcInsertMutation>
-
getExpectation
Description copied from interface:TableMutation
The validation expectation for the mutation- Specified by:
getExpectation
in interfaceTableMutation<JdbcInsertMutation>
-
getValueBindings
Description copied from interface:TableInsert
The value bindings for each column, including table key(s)- Specified by:
getValueBindings
in interfaceTableInsert
-
forEachValueBinding
Description copied from interface:TableInsert
Visit each value binding- Specified by:
forEachValueBinding
in interfaceTableInsert
- See Also:
-
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
-