Package org.hibernate.sql.model.internal
Class OptionalTableUpdate
java.lang.Object
org.hibernate.sql.model.ast.AbstractTableMutation<O>
org.hibernate.sql.model.ast.AbstractRestrictedTableMutation<MutationOperation>
org.hibernate.sql.model.internal.OptionalTableUpdate
- All Implemented Interfaces:
Statement
,RestrictedTableMutation<MutationOperation>
,TableMutation<MutationOperation>
public class OptionalTableUpdate
extends AbstractRestrictedTableMutation<MutationOperation>
implements RestrictedTableMutation<MutationOperation>
- API Note:
- Implements
TableUpdate
because it is fundamentally an update
-
Constructor Summary
ConstructorDescriptionOptionalTableUpdate
(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) OptionalTableUpdate
(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker walker) Visitationprotected MutationOperation
createMutationOperation
(TableMapping tableDetails, String updateSql, List<JdbcParameterBinder> effectiveBinders) Intended for use fromSqlAstTranslator
createMutationOperation
(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) void
forEachParameter
(Consumer<ColumnValueParameter> consumer) Visit the JDBC parameters associated with this mutation.void
forEachValueBinding
(BiConsumer<Integer, ColumnValueBinding> consumer) The validation expectation for the mutationprotected String
boolean
Is the mutation a procedure/function?boolean
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, forEachThing, getMutatingTable, getMutationComment, 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, getMutatingTable, getMutationComment, getParameters, getTableName
-
Constructor Details
-
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings) -
OptionalTableUpdate
public OptionalTableUpdate(MutatingTableReference mutatingTable, MutationTarget<?> mutationTarget, String comment, List<ColumnValueBinding> valueBindings, List<ColumnValueBinding> keyRestrictionBindings, List<ColumnValueBinding> optLockRestrictionBindings)
-
-
Method Details
-
getLoggableName
- Specified by:
getLoggableName
in classAbstractTableMutation<MutationOperation>
-
isCustomSql
public boolean isCustomSql()- Overrides:
isCustomSql
in classAbstractTableMutation<MutationOperation>
-
getMutationTarget
- Overrides:
getMutationTarget
in classAbstractTableMutation<MutationOperation>
-
isCallable
public boolean isCallable()Description copied from interface:TableMutation
Is the mutation a procedure/function?- Specified by:
isCallable
in interfaceTableMutation<MutationOperation>
-
getExpectation
Description copied from interface:TableMutation
The validation expectation for the mutation- Specified by:
getExpectation
in interfaceTableMutation<MutationOperation>
-
forEachParameter
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:
-
getValueBindings
-
forEachValueBinding
- Specified by:
forEachValueBinding
in interfaceRestrictedTableMutation<MutationOperation>
- Overrides:
forEachValueBinding
in classAbstractRestrictedTableMutation<MutationOperation>
-
accept
Description copied from interface:Statement
Visitation -
createMutationOperation
public MutationOperation createMutationOperation(ValuesAnalysis valuesAnalysis, SessionFactoryImplementor factory) - Specified by:
createMutationOperation
in interfaceTableMutation<MutationOperation>
- Overrides:
createMutationOperation
in classAbstractTableMutation<MutationOperation>
-
createMutationOperation
protected MutationOperation createMutationOperation(TableMapping tableDetails, String updateSql, 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
-