Class LocalTemporaryTableInsertStrategy
java.lang.Object
org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableStrategy
org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy
- All Implemented Interfaces:
SqmMultiTableInsertStrategy
public class LocalTemporaryTableInsertStrategy
extends LocalTemporaryTableStrategy
implements SqmMultiTableInsertStrategy
Strategy based on ANSI SQL's definition of a "local temporary table" (local to each db session).
-
Field Summary
Fields inherited from class org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableStrategy
DROP_ID_TABLES, SHORT_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionLocalTemporaryTableInsertStrategy
(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionint
executeInsert
(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Execute the multi-table insert indicated by the passed SqmInsertStatementMethods inherited from class org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableStrategy
getEntityDescriptor, getSessionFactory, getTemporaryTable, isDropIdTables, prepare, release
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
-
Constructor Details
-
LocalTemporaryTableInsertStrategy
public LocalTemporaryTableInsertStrategy(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
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
-