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

public Class PersistentTableInsertStrategy

extends PersistentTableStrategy
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

This is a strategy that mimics temporary tables for databases which do not support temporary tables. It follows a pattern similar to the ANSI SQL definition of global temporary table using a "session id" column to segment rows from the various sessions.
Author
Steve Ebersole

Field Summary

Inherited from org.hibernate.query.sqm.mutation.internal.temptable.PersistentTableStrategy:
CATALOGCREATE_ID_TABLESDROP_ID_TABLESSCHEMASHORT_NAME

Constructor Summary

AccessConstructor and Description
public
PersistentTableInsertStrategy(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.PersistentTableStrategy:
getEntityDescriptorgetSessionFactorygetTemporaryTablepreparerelease

Constructor Detail

PersistentTableInsertStrategyback to summary
public PersistentTableInsertStrategy(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