Package org.hibernate.sql.model.internal
Class TableUpdateNoSet
- java.lang.Object
-
- org.hibernate.sql.model.ast.AbstractTableMutation<O>
-
- org.hibernate.sql.model.ast.AbstractRestrictedTableMutation<MutationOperation>
-
- org.hibernate.sql.model.internal.TableUpdateNoSet
-
- All Implemented Interfaces:
Statement
,RestrictedTableMutation<MutationOperation>
,TableMutation<MutationOperation>
,TableUpdate<MutationOperation>
public class TableUpdateNoSet extends AbstractRestrictedTableMutation<MutationOperation> implements TableUpdate<MutationOperation>
A skipped update
-
-
Constructor Summary
Constructors Constructor Description TableUpdateNoSet(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker walker)
Visitationprotected JdbcMutationOperation
createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Intended for use fromSqlAstTranslator
void
forEachParameter(Consumer<ColumnValueParameter> consumer)
Visit the JDBC parameters associated with this mutation.void
forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Visit each return-columnExpectation
getExpectation()
The validation expectation for the mutationprotected String
getLoggableName()
List<ColumnReference>
getReturningColumns()
The columns to return from the insert.List<ColumnValueBinding>
getValueBindings()
The value bindings for each column.boolean
isCallable()
Is the mutation a procedure/function?boolean
isCustomSql()
-
Methods inherited from class org.hibernate.sql.model.ast.AbstractRestrictedTableMutation
forEachKeyBinding, forEachOptimisticLockBinding, forEachValueBinding, 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, getMutatingTable, getMutationComment, getParameters, getTableName
-
Methods inherited from interface org.hibernate.sql.model.ast.TableUpdate
forEachValueBinding, getNumberOfReturningColumns, getNumberOfValueBindings
-
-
-
-
Constructor Detail
-
TableUpdateNoSet
public TableUpdateNoSet(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget)
-
-
Method Detail
-
getLoggableName
protected String getLoggableName()
- Specified by:
getLoggableName
in classAbstractTableMutation<MutationOperation>
-
isCustomSql
public boolean isCustomSql()
- Overrides:
isCustomSql
in classAbstractTableMutation<MutationOperation>
-
accept
public void accept(SqlAstWalker walker)
Description copied from interface:Statement
Visitation
-
createMutationOperation
protected JdbcMutationOperation createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Description copied from class:AbstractTableMutation
Intended for use fromSqlAstTranslator
- Specified by:
createMutationOperation
in classAbstractTableMutation<MutationOperation>
effectiveBinders
- The parameter binders effective for this table mutation
-
getExpectation
public Expectation getExpectation()
Description copied from interface:TableMutation
The validation expectation for the mutation- Specified by:
getExpectation
in interfaceTableMutation<MutationOperation>
-
isCallable
public boolean isCallable()
Description copied from interface:TableMutation
Is the mutation a procedure/function?- Specified by:
isCallable
in interfaceTableMutation<MutationOperation>
-
getValueBindings
public List<ColumnValueBinding> getValueBindings()
Description copied from interface:TableUpdate
The value bindings for each column.- Specified by:
getValueBindings
in interfaceTableUpdate<MutationOperation>
-
forEachParameter
public void forEachParameter(Consumer<ColumnValueParameter> consumer)
Description copied from interface:TableMutation
Visit the JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement
.- Specified by:
forEachParameter
in interfaceTableMutation<MutationOperation>
- Overrides:
forEachParameter
in classAbstractTableMutation<MutationOperation>
- See Also:
TableMutation.getParameters()
-
getReturningColumns
public List<ColumnReference> getReturningColumns()
Description copied from interface:TableUpdate
The columns to return from the insert.- Specified by:
getReturningColumns
in interfaceTableUpdate<MutationOperation>
-
forEachReturningColumn
public void forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Description copied from interface:TableUpdate
Visit each return-column- Specified by:
forEachReturningColumn
in interfaceTableUpdate<MutationOperation>
- See Also:
TableUpdate.getReturningColumns()
-
-