Class TableInsertCustomSql
java.lang.Object
org.hibernate.sql.ast.spi.model.AbstractTableMutation<JdbcInsertMutation>
org.hibernate.sql.ast.spi.model.AbstractTableInsert
org.hibernate.sql.ast.spi.model.TableInsertCustomSql
- All Implemented Interfaces:
AssigningTableMutation<JdbcInsertMutation>, CustomSqlMutation<JdbcInsertMutation>, TableInsert, TableMutation<JdbcInsertMutation>, SqlAstNode, Statement
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 TypeMethodDescriptionvoidaccept(SqlAstWalker walker) VisitationvoidforEachReturningColumn(BiConsumer<Integer, ColumnReference> consumer) Visit each return-columnThe custom SQL provided by the mappingThe columns to return from the insert.booleanIs the mutation a procedure/function?booleanMethods inherited from class AbstractTableInsert
createMutationOperation, forEachValueBinding, getExpectation, getLoggableName, getValueBindingsMethods inherited from class AbstractTableMutation
createMutationOperation, createMutationOperation, forEachParameter, forEachThing, getMutatingTable, getMutationComment, getMutationTarget, getParameters, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Statement
isSelectionMethods inherited from interface TableInsert
getNumberOfReturningColumns, getNumberOfValueBindingsMethods inherited from interface 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:
isCustomSqlin classAbstractTableMutation<JdbcInsertMutation>
-
getCustomSql
Description copied from interface:CustomSqlMutationThe custom SQL provided by the mapping- Specified by:
getCustomSqlin interfaceCustomSqlMutation<JdbcInsertMutation>
-
isCallable
public boolean isCallable()Description copied from interface:TableMutationIs the mutation a procedure/function?- Specified by:
isCallablein interfaceCustomSqlMutation<JdbcInsertMutation>- Specified by:
isCallablein interfaceTableMutation<JdbcInsertMutation>
-
getReturningColumns
Description copied from interface:TableInsertThe columns to return from the insert.- Specified by:
getReturningColumnsin interfaceTableInsert
-
forEachReturningColumn
Description copied from interface:TableInsertVisit each return-column- Specified by:
forEachReturningColumnin interfaceTableInsert- See Also:
-
accept
Description copied from interface:StatementVisitation- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceStatement
-