Top Description Constructors Methods
org.hibernate.sql.model.internal

public Class TableInsertCustomSql

extends AbstractTableInsert
implements CustomSqlMutation<JdbcInsertMutation>
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.model.ast.CustomSqlMutation, org.hibernate.sql.model.ast.TableMutation, org.hibernate.sql.ast.tree.Statement
Imports
java.util.Collections, .List, java.util.function.BiConsumer, org.hibernate.sql.ast.SqlAstWalker, org.hibernate.sql.ast.tree.expression.ColumnReference, org.hibernate.sql.model.MutationTarget, org.hibernate.sql.model.ast.AbstractTableInsert, .ColumnValueBinding, .ColumnValueParameter, .CustomSqlMutation, .MutatingTableReference, org.hibernate.sql.model.jdbc.JdbcInsertMutation

Insertion defined using custom sql-insert
Author
Steve Ebersole
See Also
org.hibernate.annotations.SQLInsert

Constructor Summary

AccessConstructor and Description
public
TableInsertCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public String
getCustomSql()

Implements org.hibernate.sql.model.ast.CustomSqlMutation.getCustomSql.

The custom SQL provided by the mapping
public List<ColumnReference>
getReturningColumns()

Implements org.hibernate.sql.model.ast.TableInsert.getReturningColumns.

The columns to return from the insert.
public boolean
public boolean
Inherited from org.hibernate.sql.model.ast.AbstractTableInsert:
createMutationOperationforEachValueBindinggetExpectationgetLoggableNamegetValueBindings

Constructor Detail

TableInsertCustomSqlback to summary
public TableInsertCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueParameter> parameters)

Method Detail

acceptback to summary
public void accept(SqlAstWalker walker)

Implements org.hibernate.sql.ast.tree.Statement.accept.

Doc from org.hibernate.sql.ast.tree.Statement.accept.

Visitation

Annotations
@Override
forEachReturningColumnback to summary
public void forEachReturningColumn(BiConsumer<Integer, ColumnReference> consumer)

Implements org.hibernate.sql.model.ast.TableInsert.forEachReturningColumn.

Doc from org.hibernate.sql.model.ast.TableInsert.forEachReturningColumn.

Visit each return-column

Annotations
@Override
getCustomSqlback to summary
public String getCustomSql()

Implements org.hibernate.sql.model.ast.CustomSqlMutation.getCustomSql.

Doc from org.hibernate.sql.model.ast.CustomSqlMutation.getCustomSql.

The custom SQL provided by the mapping

Annotations
@Override
getReturningColumnsback to summary
public List<ColumnReference> getReturningColumns()

Implements org.hibernate.sql.model.ast.TableInsert.getReturningColumns.

Doc from org.hibernate.sql.model.ast.TableInsert.getReturningColumns.

The columns to return from the insert.

Annotations
@Override
isCallableback to summary
public boolean isCallable()

Implements org.hibernate.sql.model.ast.CustomSqlMutation.isCallable, org.hibernate.sql.model.ast.TableMutation.isCallable.

Doc from org.hibernate.sql.model.ast.CustomSqlMutation.isCallable.

Whether getCustomSql() represents a callable (function/procedure)

Annotations
@Override
isCustomSqlback to summary
public boolean isCustomSql()

Overrides org.hibernate.sql.model.ast.AbstractTableMutation.isCustomSql.

Annotations
@Override