Class CteInsertStrategy
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.cte.CteInsertStrategy
-
- All Implemented Interfaces:
SqmMultiTableInsertStrategy
public class CteInsertStrategy extends Object implements SqmMultiTableInsertStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static String
SHORT_NAME
-
Constructor Summary
Constructors Constructor Description CteInsertStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)
CteInsertStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Execute the multi-table insert indicated by the passed SqmInsertStatementprotected CteTable
getEntityCteTable()
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.SqmMultiTableInsertStrategy
prepare, release
-
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CteInsertStrategy
public CteInsertStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)
-
CteInsertStrategy
public CteInsertStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)
-
-
Method Detail
-
executeInsert
public int executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)
Description copied from interface:SqmMultiTableInsertStrategy
Execute the multi-table insert indicated by the passed SqmInsertStatement- Specified by:
executeInsert
in interfaceSqmMultiTableInsertStrategy
- Returns:
- The number of rows affected
-
getRootDescriptor
protected EntityPersister getRootDescriptor()
-
getSessionFactory
protected SessionFactoryImplementor getSessionFactory()
-
getEntityCteTable
protected CteTable getEntityCteTable()
-
-