Package org.hibernate.sql.model.jdbc
Class DeleteOrUpsertOperation
- java.lang.Object
-
- org.hibernate.sql.model.jdbc.DeleteOrUpsertOperation
-
- All Implemented Interfaces:
MutationOperation,SelfExecutingUpdateOperation
public class DeleteOrUpsertOperation extends Object implements SelfExecutingUpdateOperation
-
-
Constructor Summary
Constructors Constructor Description DeleteOrUpsertOperation(EntityMutationTarget mutationTarget, EntityTableMapping tableMapping, UpsertOperation upsertOperation, OptionalTableUpdate optionalTableUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcValueDescriptorfindValueDescriptor(String columnName, ParameterUsage usage)Find the JDBC parameter to be used for the specified column.MutationTarget<?>getMutationTarget()The thing being mutatedMutationTypegetMutationType()The type of operation (INSERT, etc)TableMappinggetTableDetails()The table against which operation is to be performedvoidperformMutation(JdbcValueBindings jdbcValueBindings, ValuesAnalysis valuesAnalysis, SharedSessionContractImplementor session)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.model.MutationOperation
getJdbcValueDescriptor
-
-
-
-
Constructor Detail
-
DeleteOrUpsertOperation
public DeleteOrUpsertOperation(EntityMutationTarget mutationTarget, EntityTableMapping tableMapping, UpsertOperation upsertOperation, OptionalTableUpdate optionalTableUpdate)
-
-
Method Detail
-
getMutationType
public MutationType getMutationType()
Description copied from interface:MutationOperationThe type of operation (INSERT, etc)- Specified by:
getMutationTypein interfaceMutationOperation
-
getMutationTarget
public MutationTarget<?> getMutationTarget()
Description copied from interface:MutationOperationThe thing being mutated- Specified by:
getMutationTargetin interfaceMutationOperation
-
getTableDetails
public TableMapping getTableDetails()
Description copied from interface:MutationOperationThe table against which operation is to be performed- Specified by:
getTableDetailsin interfaceMutationOperation
-
findValueDescriptor
public JdbcValueDescriptor findValueDescriptor(String columnName, ParameterUsage usage)
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:
MutationOperation.getJdbcValueDescriptor(java.lang.String, org.hibernate.engine.jdbc.mutation.ParameterUsage)
-
performMutation
public void performMutation(JdbcValueBindings jdbcValueBindings, ValuesAnalysis valuesAnalysis, SharedSessionContractImplementor session)
- Specified by:
performMutationin interfaceSelfExecutingUpdateOperation
-
-