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 voidaccept(SqlAstWalker walker)Visitationprotected JdbcMutationOperationcreateMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)Intended for use fromSqlAstTranslatorvoidforEachParameter(Consumer<ColumnValueParameter> consumer)Visit the JDBC parameters associated with this mutation.voidforEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)Visit each return-columnExpectationgetExpectation()The validation expectation for the mutationprotected StringgetLoggableName()List<ColumnReference>getReturningColumns()The columns to return from the insert.List<ColumnValueBinding>getValueBindings()The value bindings for each column.booleanisCallable()Is the mutation a procedure/function?booleanisCustomSql()-
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:
getLoggableNamein classAbstractTableMutation<MutationOperation>
-
isCustomSql
public boolean isCustomSql()
- Overrides:
isCustomSqlin classAbstractTableMutation<MutationOperation>
-
accept
public void accept(SqlAstWalker walker)
Description copied from interface:StatementVisitation
-
createMutationOperation
protected JdbcMutationOperation createMutationOperation(TableMapping tableDetails, String sql, List<JdbcParameterBinder> effectiveBinders)
Description copied from class:AbstractTableMutationIntended for use fromSqlAstTranslator- Specified by:
createMutationOperationin classAbstractTableMutation<MutationOperation>effectiveBinders- The parameter binders effective for this table mutation
-
getExpectation
public Expectation getExpectation()
Description copied from interface:TableMutationThe validation expectation for the mutation- Specified by:
getExpectationin interfaceTableMutation<MutationOperation>
-
isCallable
public boolean isCallable()
Description copied from interface:TableMutationIs the mutation a procedure/function?- Specified by:
isCallablein interfaceTableMutation<MutationOperation>
-
getValueBindings
public List<ColumnValueBinding> getValueBindings()
Description copied from interface:TableUpdateThe value bindings for each column.- Specified by:
getValueBindingsin interfaceTableUpdate<MutationOperation>
-
forEachParameter
public void forEachParameter(Consumer<ColumnValueParameter> consumer)
Description copied from interface:TableMutationVisit the JDBC parameters associated with this mutation. The order here is the expected binding order for thePreparedStatement.- Specified by:
forEachParameterin interfaceTableMutation<MutationOperation>- Overrides:
forEachParameterin classAbstractTableMutation<MutationOperation>- See Also:
TableMutation.getParameters()
-
getReturningColumns
public List<ColumnReference> getReturningColumns()
Description copied from interface:TableUpdateThe columns to return from the insert.- Specified by:
getReturningColumnsin interfaceTableUpdate<MutationOperation>
-
forEachReturningColumn
public void forEachReturningColumn(BiConsumer<Integer,ColumnReference> consumer)
Description copied from interface:TableUpdateVisit each return-column- Specified by:
forEachReturningColumnin interfaceTableUpdate<MutationOperation>- See Also:
TableUpdate.getReturningColumns()
-
-