Package org.hibernate.sql.model.ast
Interface TableInsert
-
- All Superinterfaces:
Statement
,TableMutation<JdbcInsertMutation>
- All Known Implementing Classes:
AbstractTableInsert
,TableInsertCustomSql
,TableInsertStandard
public interface TableInsert extends TableMutation<JdbcInsertMutation>
Models an insert into a model (entity or collection) table, triggered from flush
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Visit each return-columnvoid
forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each value bindingdefault int
getNumberOfReturningColumns()
The number of columns being returneddefault int
getNumberOfValueBindings()
The number of value bindingsList<ColumnReference>
getReturningColumns()
The columns to return from the insert.List<ColumnValueBinding>
getValueBindings()
The value bindings for each column, including table key(s)-
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getExpectation, getMutatingTable, getMutationComment, getParameters, getTableName, isCallable
-
-
-
-
Method Detail
-
getValueBindings
List<ColumnValueBinding> getValueBindings()
The value bindings for each column, including table key(s)
-
getNumberOfValueBindings
default int getNumberOfValueBindings()
The number of value bindings- See Also:
getValueBindings()
-
forEachValueBinding
void forEachValueBinding(BiConsumer<Integer,ColumnValueBinding> consumer)
Visit each value binding- See Also:
getValueBindings()
-
getReturningColumns
List<ColumnReference> getReturningColumns()
The columns to return from the insert.
-
getNumberOfReturningColumns
default int getNumberOfReturningColumns()
The number of columns being returned- See Also:
getReturningColumns()
-
forEachReturningColumn
void forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Visit each return-column- See Also:
getReturningColumns()
-
-