Package org.hibernate.dialect.temptable
Class StandardGlobalTemporaryTableStrategy
java.lang.Object
org.hibernate.dialect.temptable.StandardGlobalTemporaryTableStrategy
- All Implemented Interfaces:
TemporaryTableStrategy
- Direct Known Subclasses:
DB2GlobalTemporaryTableStrategy
,H2GlobalTemporaryTableStrategy
,HANAGlobalTemporaryTableStrategy
Strategy to interact with global temporary tables.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustTemporaryTableName
(String desiredTableName) Returns an adjusted table name that can be used for temporary tables.getCreateTemporaryTableColumnAnnotation
(int sqlTypeCode) Annotation to be appended to the end of each COLUMN clause for temporary tables.The action to take after finishing use of a temporary table.The action to take before beginning use of a temporary table.The command to create a temporary table.An arbitrary SQL fragment appended to the end of the statement to create a temporary table, specifying dialect-specific options, ornull
if there are no options to specify.The command to drop a temporary table.The kind of temporary tables that are supported on this database.The command to truncate a temporary table.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.temptable.TemporaryTableStrategy
supportsTemporaryTableNullConstraint, supportsTemporaryTablePrimaryKey
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StandardGlobalTemporaryTableStrategy
public StandardGlobalTemporaryTableStrategy()
-
-
Method Details
-
adjustTemporaryTableName
Description copied from interface:TemporaryTableStrategy
Returns an adjusted table name that can be used for temporary tables.- Specified by:
adjustTemporaryTableName
in interfaceTemporaryTableStrategy
-
getTemporaryTableKind
Description copied from interface:TemporaryTableStrategy
The kind of temporary tables that are supported on this database.- Specified by:
getTemporaryTableKind
in interfaceTemporaryTableStrategy
-
getTemporaryTableCreateOptions
Description copied from interface:TemporaryTableStrategy
An arbitrary SQL fragment appended to the end of the statement to create a temporary table, specifying dialect-specific options, ornull
if there are no options to specify.- Specified by:
getTemporaryTableCreateOptions
in interfaceTemporaryTableStrategy
-
getTemporaryTableCreateCommand
Description copied from interface:TemporaryTableStrategy
The command to create a temporary table.- Specified by:
getTemporaryTableCreateCommand
in interfaceTemporaryTableStrategy
-
getTemporaryTableDropCommand
Description copied from interface:TemporaryTableStrategy
The command to drop a temporary table.- Specified by:
getTemporaryTableDropCommand
in interfaceTemporaryTableStrategy
-
getTemporaryTableTruncateCommand
Description copied from interface:TemporaryTableStrategy
The command to truncate a temporary table.- Specified by:
getTemporaryTableTruncateCommand
in interfaceTemporaryTableStrategy
-
getCreateTemporaryTableColumnAnnotation
Description copied from interface:TemporaryTableStrategy
Annotation to be appended to the end of each COLUMN clause for temporary tables.- Specified by:
getCreateTemporaryTableColumnAnnotation
in interfaceTemporaryTableStrategy
- Parameters:
sqlTypeCode
- The SQL type code- Returns:
- The annotation to be appended, for example,
COLLATE DATABASE_DEFAULT
in SQL Server
-
getTemporaryTableAfterUseAction
Description copied from interface:TemporaryTableStrategy
The action to take after finishing use of a temporary table.- Specified by:
getTemporaryTableAfterUseAction
in interfaceTemporaryTableStrategy
-
getTemporaryTableBeforeUseAction
Description copied from interface:TemporaryTableStrategy
The action to take before beginning use of a temporary table.- Specified by:
getTemporaryTableBeforeUseAction
in interfaceTemporaryTableStrategy
-