Top Description Fields Constructors Methods
org.hibernate.query.sqm.mutation.internal.temptable

public Class GlobalTemporaryTableInsertStrategy

extends GlobalTemporaryTableStrategy
implements SqmMultiTableInsertStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy
Imports
org.hibernate.dialect.temptable.TemporaryTable, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.spi.DomainQueryExecutionContext, org.hibernate.query.sqm.internal.DomainParameterXref, org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy, org.hibernate.query.sqm.tree.insert.SqmInsertStatement

Strategy based on ANSI SQL's definition of a "global temporary table".
Author
Steve Ebersole

Field Summary

Inherited from org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableStrategy:
CREATE_ID_TABLESDROP_ID_TABLESSHORT_NAME

Constructor Summary

AccessConstructor and Description
public
GlobalTemporaryTableInsertStrategy(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public int
executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Execute the multi-table insert indicated by the passed SqmInsertStatement
Inherited from org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableStrategy:
getEntityDescriptorgetSessionFactorygetTemporaryTablepreparerelease

Constructor Detail

GlobalTemporaryTableInsertStrategyback to summary
public GlobalTemporaryTableInsertStrategy(TemporaryTable entityTable, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

executeInsertback to summary
public int executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Doc from org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Execute the multi-table insert indicated by the passed SqmInsertStatement

Returns:int

The number of rows affected

Annotations
@Override