Class CteMutationStrategy
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.cte.CteMutationStrategy
-
- All Implemented Interfaces:
SqmMultiTableMutationStrategy
public class CteMutationStrategy extends Object implements SqmMultiTableMutationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_TABLE_NAME
static String
SHORT_NAME
-
Constructor Summary
Constructors Constructor Description CteMutationStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)
CteMutationStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement)
int
executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Execute the multi-table update indicated by the passed SqmUpdateStatementint
executeUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Execute the multi-table update indicated by the passed SqmUpdateStatementprotected CteTable
getIdCteTable()
protected EntityPersister
getRootDescriptor()
protected SessionFactoryImplementor
getSessionFactory()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy
prepare, release
-
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
ID_TABLE_NAME
public static final String ID_TABLE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CteMutationStrategy
public CteMutationStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)
-
CteMutationStrategy
public CteMutationStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
-
-
Method Detail
-
executeDelete
public int executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Description copied from interface:SqmMultiTableMutationStrategy
Execute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeDelete
in interfaceSqmMultiTableMutationStrategy
- Returns:
- The number of rows affected
-
executeUpdate
public int executeUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Description copied from interface:SqmMultiTableMutationStrategy
Execute the multi-table update indicated by the passed SqmUpdateStatement- Specified by:
executeUpdate
in interfaceSqmMultiTableMutationStrategy
- Returns:
- The number of rows affected
-
checkMatch
protected void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement)
-
getRootDescriptor
protected EntityPersister getRootDescriptor()
-
getSessionFactory
protected SessionFactoryImplementor getSessionFactory()
-
getIdCteTable
protected CteTable getIdCteTable()
-
-