Class LocalTemporaryTableMutationStrategy
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableStrategy
-
- org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableMutationStrategy
-
- All Implemented Interfaces:
SqmMultiTableMutationStrategy
public class LocalTemporaryTableMutationStrategy extends LocalTemporaryTableStrategy implements SqmMultiTableMutationStrategy
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
Constructors Constructor Description LocalTemporaryTableMutationStrategy(TemporaryTable idTable, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 SqmUpdateStatement-
Methods inherited from class org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableStrategy
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.SqmMultiTableMutationStrategy
prepare, release
-
-
-
-
Constructor Detail
-
LocalTemporaryTableMutationStrategy
public LocalTemporaryTableMutationStrategy(TemporaryTable idTable, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
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
-
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
-
-