Class PersistentTableStrategy
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.temptable.PersistentTableStrategy
-
- Direct Known Subclasses:
PersistentTableInsertStrategy
,PersistentTableMutationStrategy
public abstract class PersistentTableStrategy extends Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CATALOG
static String
CREATE_ID_TABLES
static String
DROP_ID_TABLES
static String
SCHEMA
static String
SHORT_NAME
-
Constructor Summary
Constructors Constructor Description PersistentTableStrategy(TemporaryTable temporaryTable, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionFactoryImplementor
getSessionFactory()
TemporaryTable
getTemporaryTable()
void
prepare(MappingModelCreationProcess mappingModelCreationProcess, JdbcConnectionAccess connectionAccess)
void
release(SessionFactoryImplementor sessionFactory, JdbcConnectionAccess connectionAccess)
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
CREATE_ID_TABLES
public static final String CREATE_ID_TABLES
- See Also:
- Constant Field Values
-
DROP_ID_TABLES
public static final String DROP_ID_TABLES
- See Also:
- Constant Field Values
-
SCHEMA
public static final String SCHEMA
- See Also:
- Constant Field Values
-
CATALOG
public static final String CATALOG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistentTableStrategy
public PersistentTableStrategy(TemporaryTable temporaryTable, SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
prepare
public void prepare(MappingModelCreationProcess mappingModelCreationProcess, JdbcConnectionAccess connectionAccess)
-
release
public void release(SessionFactoryImplementor sessionFactory, JdbcConnectionAccess connectionAccess)
-
getTemporaryTable
public TemporaryTable getTemporaryTable()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
-
-