Class StandardLocalTemporaryTableStrategy
java.lang.Object
org.hibernate.dialect.temptable.spi.StandardLocalTemporaryTableStrategy
- All Implemented Interfaces:
TemporaryTableStrategy
@SPI({USE,IMPLEMENT,SUPPLY})
public class StandardLocalTemporaryTableStrategy
extends Object
implements TemporaryTableStrategy
Standard family strategy for local temporary tables.
Providers may return INSTANCE, create an instance, subclass this strategy,
or compose it while implementing a database-specific variation.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the standard strategy or a base for a custom local strategy. -
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TemporaryTableStrategy
supportsTemporaryTableNullConstraint, supportsTemporaryTablePrimaryKey
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StandardLocalTemporaryTableStrategy
-
-
Method Details
-
adjustTemporaryTableName
Description copied from interface:TemporaryTableStrategyAdjust a logical table name to the database's temporary-table naming rules. The result must be a valid unqualified identifier fragment.- Specified by:
adjustTemporaryTableNamein interfaceTemporaryTableStrategy
-
getTemporaryTableKind
Description copied from interface:TemporaryTableStrategyThe kind of temporary table described by this strategy.- Specified by:
getTemporaryTableKindin interfaceTemporaryTableStrategy
-
getTemporaryTableCreateOptions
Description copied from interface:TemporaryTableStrategyAn arbitrary SQL fragment appended to the create-table statement, ornullwhen there are no options to specify.- Specified by:
getTemporaryTableCreateOptionsin interfaceTemporaryTableStrategy
-
getTemporaryTableCreateCommand
Description copied from interface:TemporaryTableStrategyThe command prefix used to create the temporary table, without the table name or column list.- Specified by:
getTemporaryTableCreateCommandin interfaceTemporaryTableStrategy
-
getTemporaryTableDropCommand
Description copied from interface:TemporaryTableStrategyThe command prefix used to drop the temporary table, without the table name.- Specified by:
getTemporaryTableDropCommandin interfaceTemporaryTableStrategy
-
getTemporaryTableTruncateCommand
Description copied from interface:TemporaryTableStrategyThe command prefix used to truncate or otherwise clean the temporary table, without the table name or session restriction.- Specified by:
getTemporaryTableTruncateCommandin interfaceTemporaryTableStrategy
-
getCreateTemporaryTableColumnAnnotation
Description copied from interface:TemporaryTableStrategyThe SQL fragment appended to a temporary-table column declaration for the givenSqlTypescode, or an empty string when none is required.- Specified by:
getCreateTemporaryTableColumnAnnotationin interfaceTemporaryTableStrategy
-
getTemporaryTableAfterUseAction
Description copied from interface:TemporaryTableStrategyThe lifecycle action Hibernate performs after finishing use of the table.- Specified by:
getTemporaryTableAfterUseActionin interfaceTemporaryTableStrategy
-
getTemporaryTableBeforeUseAction
Description copied from interface:TemporaryTableStrategyThe lifecycle action Hibernate performs before beginning use of the table.- Specified by:
getTemporaryTableBeforeUseActionin interfaceTemporaryTableStrategy
-