Package org.hibernate.sql.model.internal
Class TableInsertCustomSql
java.lang.Object
org.hibernate.sql.model.ast.AbstractTableMutation<JdbcInsertMutation>
org.hibernate.sql.model.ast.AbstractTableInsert
org.hibernate.sql.model.internal.TableInsertCustomSql
- All Implemented Interfaces:
Statement
,CustomSqlMutation<JdbcInsertMutation>
,TableInsert
,TableMutation<JdbcInsertMutation>
public class TableInsertCustomSql
extends AbstractTableInsert
implements CustomSqlMutation<JdbcInsertMutation>
Insertion defined using custom sql-insert
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTableInsertCustomSql
(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker walker) Visitationvoid
forEachReturningColumn
(BiConsumer<Integer, ColumnReference> consumer) Visit each return-columnThe custom SQL provided by the mappingThe columns to return from the insert.boolean
WhetherCustomSqlMutation.getCustomSql()
represents a callable (function/procedure)boolean
Methods inherited from class org.hibernate.sql.model.ast.AbstractTableInsert
createMutationOperation, forEachValueBinding, getExpectation, getLoggableName, getValueBindings
Methods inherited from class org.hibernate.sql.model.ast.AbstractTableMutation
createMutationOperation, createMutationOperation, forEachParameter, forEachThing, getMutatingTable, getMutationComment, getMutationTarget, getParameters, 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
getNumberOfReturningColumns, getNumberOfValueBindings
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getExpectation, getMutatingTable, getMutationComment, getParameters, getTableName
-
Constructor Details
-
TableInsertCustomSql
public TableInsertCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters)
-
-
Method Details
-
isCustomSql
public boolean isCustomSql()- Overrides:
isCustomSql
in classAbstractTableMutation<JdbcInsertMutation>
-
getCustomSql
Description copied from interface:CustomSqlMutation
The custom SQL provided by the mapping- Specified by:
getCustomSql
in interfaceCustomSqlMutation<JdbcInsertMutation>
-
isCallable
public boolean isCallable()Description copied from interface:CustomSqlMutation
WhetherCustomSqlMutation.getCustomSql()
represents a callable (function/procedure)- Specified by:
isCallable
in interfaceCustomSqlMutation<JdbcInsertMutation>
- Specified by:
isCallable
in interfaceTableMutation<JdbcInsertMutation>
-
getReturningColumns
Description copied from interface:TableInsert
The columns to return from the insert.- Specified by:
getReturningColumns
in interfaceTableInsert
-
forEachReturningColumn
Description copied from interface:TableInsert
Visit each return-column- Specified by:
forEachReturningColumn
in interfaceTableInsert
- See Also:
-
accept
Description copied from interface:Statement
Visitation
-