Class OptionalTableUpdateOperation
java.lang.Object
org.hibernate.sql.spi.mutation.jdbc.OptionalTableUpdateOperation
- All Implemented Interfaces:
JdbcValueDescriptorAccess, MutationOperation, SelfExecutingUpdateOperation
- Direct Known Subclasses:
OptionalTableUpdateWithUpsertOperation
@SPI({USE,IMPLEMENT})
public class OptionalTableUpdateOperation
extends Object
implements SelfExecutingUpdateOperation
Legacy "upsert" handling, conditionally using INSERT, UPDATE and DELETE
statements as required for optional secondary tables.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionOptionalTableUpdateOperation(MutationTarget mutationTarget, OptionalTableUpdate upsert) protectedOptionalTableUpdateOperation(MutationTarget mutationTarget, OptionalTableUpdate upsert, Expectation expectation) -
Method Summary
Modifier and TypeMethodDescriptionprotected JdbcDeleteMutationprotected JdbcInsertMutationprotected JdbcMutationOperationprotected JdbcMutationOperationfinal JdbcValueDescriptorfindValueDescriptor(String columnName, ParameterUsage usage) Find the JDBC parameter to be used for the specified column.protected final List<ColumnValueBinding> final MutationTargetThe thing being mutatedfinal MutationTypeThe type of operation (INSERT, etc)protected final List<ColumnValueBinding> protected final List<ColumnValueParameter> final TableMappingThe table against which operation is to be performedprotected final List<ColumnValueBinding> voidperformMutation(JdbcValueBindings jdbcValueBindings, ValuesAnalysis incomingValuesAnalysis, SharedSessionContractImplementor session) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JdbcValueDescriptorAccess
forEachValueDescriptorMethods inherited from interface MutationOperation
getJdbcValueDescriptor, resolvePhysicalTableName, resolveValueDescriptor
-
Constructor Details
-
OptionalTableUpdateOperation
-
OptionalTableUpdateOperation
@SPI(IMPLEMENT) protected OptionalTableUpdateOperation(MutationTarget mutationTarget, OptionalTableUpdate upsert, Expectation expectation)
-
-
Method Details
-
getMutationType
Description copied from interface:MutationOperationThe type of operation (INSERT, etc)- Specified by:
getMutationTypein interfaceMutationOperation
-
getMutationTarget
Description copied from interface:MutationOperationThe thing being mutated- Specified by:
getMutationTargetin interfaceMutationOperation
-
getTableDetails
Description copied from interface:MutationOperationThe table against which operation is to be performed- Specified by:
getTableDetailsin interfaceMutationOperation
-
getValueBindings
-
getKeyBindings
-
getOptimisticLockBindings
-
getParameters
-
findValueDescriptor
Description copied from interface:MutationOperationFind the JDBC parameter to be used for the specified column.- Specified by:
findValueDescriptorin interfaceMutationOperation- Returns:
- The descriptor, or null if none match.
- See Also:
-
toString
-