Package org.hibernate.sql.model.jdbc
Class OptionalTableUpdateOperation
java.lang.Object
org.hibernate.sql.model.jdbc.OptionalTableUpdateOperation
- All Implemented Interfaces:
MutationOperation,SelfExecutingUpdateOperation
Legacy "upsert" handling, conditionally using INSERT, UPDATE and DELETE
statements as required for optional secondary tables.
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalTableUpdateOperation(MutationTarget<?> mutationTarget, OptionalTableUpdate upsert, SessionFactoryImplementor factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected JdbcDeleteMutationprotected JdbcInsertMutationprotected JdbcMutationOperationfindValueDescriptor(String columnName, ParameterUsage usage) Find the JDBC parameter to be used for the specified column.The thing being mutatedThe type of operation (INSERT, etc)The table against which operation is to be performedvoidperformMutation(JdbcValueBindings jdbcValueBindings, ValuesAnalysis incomingValuesAnalysis, SharedSessionContractImplementor session) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.sql.model.MutationOperation
getJdbcValueDescriptor
-
Constructor Details
-
OptionalTableUpdateOperation
public OptionalTableUpdateOperation(MutationTarget<?> mutationTarget, OptionalTableUpdate upsert, SessionFactoryImplementor factory)
-
-
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
-
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
-