Package org.hibernate.sql.model.internal
Class TableUpdateCustomSql
- java.lang.Object
-
- org.hibernate.sql.model.ast.AbstractTableMutation<O>
-
- org.hibernate.sql.model.ast.AbstractRestrictedTableMutation<O>
-
- org.hibernate.sql.model.ast.AbstractTableUpdate<JdbcMutationOperation>
-
- org.hibernate.sql.model.internal.TableUpdateCustomSql
-
- All Implemented Interfaces:
Statement
,CustomSqlMutation<JdbcMutationOperation>
,RestrictedTableMutation<JdbcMutationOperation>
,TableMutation<JdbcMutationOperation>
,TableUpdate<JdbcMutationOperation>
public class TableUpdateCustomSql extends AbstractTableUpdate<JdbcMutationOperation> implements CustomSqlMutation<JdbcMutationOperation>
Update defined using custom sql-update- See Also:
SQLUpdate
-
-
Constructor Summary
Constructors Constructor Description TableUpdateCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
TableUpdateCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker walker)
Visitationvoid
forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Visit each return-columnString
getCustomSql()
The custom SQL provided by the mappingList<ColumnReference>
getReturningColumns()
The columns to return from the insert.boolean
isCallable()
WhetherCustomSqlMutation.getCustomSql()
represents a callable (function/procedure)boolean
isCustomSql()
-
Methods inherited from class org.hibernate.sql.model.ast.AbstractTableUpdate
collectParameters, createMutationOperation, forEachParameter, forEachValueBinding, getExpectation, getLoggableName, getValueBindings
-
Methods inherited from class org.hibernate.sql.model.ast.AbstractRestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getOptimisticLockBindings
-
Methods inherited from class org.hibernate.sql.model.ast.AbstractTableMutation
createMutationOperation, createMutationOperation, 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.RestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, getKeyBindings, getNumberOfKeyBindings, getNumberOfOptimisticLockBindings, getOptimisticLockBindings
-
Methods inherited from interface org.hibernate.sql.model.ast.TableMutation
createMutationOperation, createMutationOperation, forEachParameter, getExpectation, getMutatingTable, getMutationComment, getParameters, getTableName
-
Methods inherited from interface org.hibernate.sql.model.ast.TableUpdate
getNumberOfReturningColumns, getNumberOfValueBindings
-
-
-
-
Constructor Detail
-
TableUpdateCustomSql
public TableUpdateCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
-
TableUpdateCustomSql
public TableUpdateCustomSql(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String sqlComment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings, List<ColumnValueParameter> parameters)
-
-
Method Detail
-
isCustomSql
public boolean isCustomSql()
- Overrides:
isCustomSql
in classAbstractTableMutation<JdbcMutationOperation>
-
getCustomSql
public String getCustomSql()
Description copied from interface:CustomSqlMutation
The custom SQL provided by the mapping- Specified by:
getCustomSql
in interfaceCustomSqlMutation<JdbcMutationOperation>
-
isCallable
public boolean isCallable()
Description copied from interface:CustomSqlMutation
WhetherCustomSqlMutation.getCustomSql()
represents a callable (function/procedure)- Specified by:
isCallable
in interfaceCustomSqlMutation<JdbcMutationOperation>
- Specified by:
isCallable
in interfaceTableMutation<JdbcMutationOperation>
-
getReturningColumns
public List<ColumnReference> getReturningColumns()
Description copied from interface:TableUpdate
The columns to return from the insert.- Specified by:
getReturningColumns
in interfaceTableUpdate<JdbcMutationOperation>
-
forEachReturningColumn
public void forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Description copied from interface:TableUpdate
Visit each return-column- Specified by:
forEachReturningColumn
in interfaceTableUpdate<JdbcMutationOperation>
- See Also:
TableUpdate.getReturningColumns()
-
accept
public void accept(SqlAstWalker walker)
Description copied from interface:Statement
Visitation
-
-