Class GlobalTemporaryTableInsertStrategy
java.lang.Object
org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableStrategy
org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy
- All Implemented Interfaces:
SqmMultiTableInsertStrategy
public class GlobalTemporaryTableInsertStrategy
extends GlobalTemporaryTableStrategy
implements SqmMultiTableInsertStrategy
Strategy based on ANSI SQL's definition of a "global temporary table".
-
Field Summary
Fields inherited from class org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableStrategy
CREATE_ID_TABLES, DROP_ID_TABLES, SHORT_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalTemporaryTableInsertStrategy
(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory) GlobalTemporaryTableInsertStrategy
(EntityMappingType rootEntityDescriptor, RuntimeModelCreationContext runtimeModelCreationContext) -
Method Summary
Modifier and TypeMethodDescriptionbuildHandler
(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Builds a cacheable handler for the passed SqmInsertStatement.Methods inherited from class org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableStrategy
getSessionFactory, getTemporaryTable, getTemporaryTableStrategy, prepare, release, requireGlobalTemporaryTableStrategy
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
executeInsert, prepare, prepare, release
-
Constructor Details
-
GlobalTemporaryTableInsertStrategy
public GlobalTemporaryTableInsertStrategy(EntityMappingType rootEntityDescriptor, RuntimeModelCreationContext runtimeModelCreationContext) -
GlobalTemporaryTableInsertStrategy
public GlobalTemporaryTableInsertStrategy(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
buildHandler
public MultiTableHandlerBuildResult buildHandler(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Description copied from interface:SqmMultiTableInsertStrategy
Builds a cacheable handler for the passed SqmInsertStatement.- Specified by:
buildHandler
in interfaceSqmMultiTableInsertStrategy
- Returns:
- The number of rows affected
-