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:
SQLInsert
-
-
Constructor Summary
Constructors Constructor Description TableInsertCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker walker)VisitationvoidforEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)Visit each return-columnStringgetCustomSql()The custom SQL provided by the mappingList<ColumnReference>getReturningColumns()The columns to return from the insert.booleanisCallable()WhetherCustomSqlMutation.getCustomSql()represents a callable (function/procedure)booleanisCustomSql()-
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 Detail
-
TableInsertCustomSql
public TableInsertCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters)
-
-
Method Detail
-
isCustomSql
public boolean isCustomSql()
- Overrides:
isCustomSqlin classAbstractTableMutation<JdbcInsertMutation>
-
getCustomSql
public String 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:CustomSqlMutationWhetherCustomSqlMutation.getCustomSql()represents a callable (function/procedure)- Specified by:
isCallablein interfaceCustomSqlMutation<JdbcInsertMutation>- Specified by:
isCallablein interfaceTableMutation<JdbcInsertMutation>
-
getReturningColumns
public List<ColumnReference> getReturningColumns()
Description copied from interface:TableInsertThe columns to return from the insert.- Specified by:
getReturningColumnsin interfaceTableInsert- See Also:
Connection.prepareStatement(String, String[])
-
forEachReturningColumn
public void forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Description copied from interface:TableInsertVisit each return-column- Specified by:
forEachReturningColumnin interfaceTableInsert- See Also:
TableInsert.getReturningColumns()
-
accept
public void accept(SqlAstWalker walker)
Description copied from interface:StatementVisitation
-
-