Package org.hibernate.dialect.temptable
Interface TemporaryTableStrategy
- All Known Implementing Classes:
DB2GlobalTemporaryTableStrategy
,H2GlobalTemporaryTableStrategy
,HANAGlobalTemporaryTableStrategy
,HSQLLocalTemporaryTableStrategy
,LegacyTemporaryTableStrategy
,MySQLLocalTemporaryTableStrategy
,OracleLocalTemporaryTableStrategy
,PersistentTemporaryTableStrategy
,SQLServerLocalTemporaryTableStrategy
,StandardGlobalTemporaryTableStrategy
,StandardLocalTemporaryTableStrategy
,TransactSQLLocalTemporaryTableStrategy
public interface TemporaryTableStrategy
Defines how to interact with a certain temporary table kind.
- Since:
- 7.1
-
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.@Nullable String
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.default boolean
Does this database support null constraints for temporary table columns for this strategy?default boolean
Does this database support primary keys for temporary tables for this strategy?
-
Method Details
-
adjustTemporaryTableName
Returns an adjusted table name that can be used for temporary tables. -
getTemporaryTableKind
TemporaryTableKind getTemporaryTableKind()The kind of temporary tables that are supported on this database. -
getTemporaryTableCreateOptions
@Nullable String getTemporaryTableCreateOptions()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. -
getTemporaryTableCreateCommand
String getTemporaryTableCreateCommand()The command to create a temporary table. -
getTemporaryTableDropCommand
String getTemporaryTableDropCommand()The command to drop a temporary table. -
getTemporaryTableTruncateCommand
String getTemporaryTableTruncateCommand()The command to truncate a temporary table. -
getCreateTemporaryTableColumnAnnotation
Annotation to be appended to the end of each COLUMN clause for temporary tables.- Parameters:
sqlTypeCode
- The SQL type code- Returns:
- The annotation to be appended, for example,
COLLATE DATABASE_DEFAULT
in SQL Server
-
getTemporaryTableAfterUseAction
AfterUseAction getTemporaryTableAfterUseAction()The action to take after finishing use of a temporary table. -
getTemporaryTableBeforeUseAction
BeforeUseAction getTemporaryTableBeforeUseAction()The action to take before beginning use of a temporary table. -
supportsTemporaryTablePrimaryKey
default boolean supportsTemporaryTablePrimaryKey()Does this database support primary keys for temporary tables for this strategy?- Returns:
- true by default, since most do
-
supportsTemporaryTableNullConstraint
default boolean supportsTemporaryTableNullConstraint()Does this database support null constraints for temporary table columns for this strategy?- Returns:
- true by default, since most do
-