Interface TemporaryTableStrategy
- All Known Implementing Classes:
PersistentTemporaryTableStrategy, StandardGlobalTemporaryTableStrategy, StandardLocalTemporaryTableStrategy
Defines how Hibernate interacts with one kind of temporary table.
A provider may implement this contract directly, compose one of the standard family strategies, or supply a stock strategy from a Dialect. Instances may be reused for the Dialect lifetime and must not hold operation-specific or session-specific state. The selected before/after-use actions must agree with the table kind and with the DDL commands returned by this strategy.
- Since:
- 8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadjustTemporaryTableName(String desiredTableName) Adjust a logical table name to the database's temporary-table naming rules.getCreateTemporaryTableColumnAnnotation(int sqlTypeCode) The SQL fragment appended to a temporary-table column declaration for the givenSqlTypescode, or an empty string when none is required.The lifecycle action Hibernate performs after finishing use of the table.The lifecycle action Hibernate performs before beginning use of the table.The command prefix used to create the temporary table, without the table name or column list.An arbitrary SQL fragment appended to the create-table statement, ornullwhen there are no options to specify.The command prefix used to drop the temporary table, without the table name.The kind of temporary table described by this strategy.The command prefix used to truncate or otherwise clean the temporary table, without the table name or session restriction.default booleanWhether this strategy supports nullability constraints on temporary-table columns.default booleanWhether this strategy supports a primary key on its temporary table.
-
Method Details
-
adjustTemporaryTableName
-
getTemporaryTableKind
TemporaryTableKind getTemporaryTableKind()The kind of temporary table described by this strategy. -
getTemporaryTableCreateOptions
-
getTemporaryTableCreateCommand
String getTemporaryTableCreateCommand()The command prefix used to create the temporary table, without the table name or column list. -
getTemporaryTableDropCommand
String getTemporaryTableDropCommand()The command prefix used to drop the temporary table, without the table name. -
getTemporaryTableTruncateCommand
String getTemporaryTableTruncateCommand()The command prefix used to truncate or otherwise clean the temporary table, without the table name or session restriction. -
getCreateTemporaryTableColumnAnnotation
-
getTemporaryTableAfterUseAction
AfterUseAction getTemporaryTableAfterUseAction()The lifecycle action Hibernate performs after finishing use of the table. -
getTemporaryTableBeforeUseAction
BeforeUseAction getTemporaryTableBeforeUseAction()The lifecycle action Hibernate performs before beginning use of the table. -
supportsTemporaryTablePrimaryKey
default boolean supportsTemporaryTablePrimaryKey()Whether this strategy supports a primary key on its temporary table. -
supportsTemporaryTableNullConstraint
default boolean supportsTemporaryTableNullConstraint()Whether this strategy supports nullability constraints on temporary-table columns.
-