Package org.hibernate.dialect.temptable
Class PersistentTemporaryTableStrategy
java.lang.Object
org.hibernate.dialect.temptable.PersistentTemporaryTableStrategy
- All Implemented Interfaces:
TemporaryTableStrategy
Strategy to interact with persistent temporary tables.
-
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.@Nullable StringAn arbitrary SQL fragment appended to the end of the statement to create a temporary table, specifying dialect-specific options, ornullif 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, waitMethods inherited from interface org.hibernate.dialect.temptable.TemporaryTableStrategy
supportsTemporaryTableNullConstraint, supportsTemporaryTablePrimaryKey
-
Constructor Details
-
PersistentTemporaryTableStrategy
-
-
Method Details
-
adjustTemporaryTableName
Description copied from interface:TemporaryTableStrategyReturns an adjusted table name that can be used for temporary tables.- Specified by:
adjustTemporaryTableNamein interfaceTemporaryTableStrategy
-
getTemporaryTableKind
Description copied from interface:TemporaryTableStrategyThe kind of temporary tables that are supported on this database.- Specified by:
getTemporaryTableKindin interfaceTemporaryTableStrategy
-
getTemporaryTableCreateOptions
Description copied from interface:TemporaryTableStrategyAn arbitrary SQL fragment appended to the end of the statement to create a temporary table, specifying dialect-specific options, ornullif there are no options to specify.- Specified by:
getTemporaryTableCreateOptionsin interfaceTemporaryTableStrategy
-
getTemporaryTableCreateCommand
Description copied from interface:TemporaryTableStrategyThe command to create a temporary table.- Specified by:
getTemporaryTableCreateCommandin interfaceTemporaryTableStrategy
-
getTemporaryTableDropCommand
Description copied from interface:TemporaryTableStrategyThe command to drop a temporary table.- Specified by:
getTemporaryTableDropCommandin interfaceTemporaryTableStrategy
-
getTemporaryTableTruncateCommand
Description copied from interface:TemporaryTableStrategyThe command to truncate a temporary table.- Specified by:
getTemporaryTableTruncateCommandin interfaceTemporaryTableStrategy
-
getCreateTemporaryTableColumnAnnotation
Description copied from interface:TemporaryTableStrategyAnnotation to be appended to the end of each COLUMN clause for temporary tables.- Specified by:
getCreateTemporaryTableColumnAnnotationin interfaceTemporaryTableStrategy- Parameters:
sqlTypeCode- The SQL type code- Returns:
- The annotation to be appended, for example,
COLLATE DATABASE_DEFAULTin SQL Server
-
getTemporaryTableAfterUseAction
Description copied from interface:TemporaryTableStrategyThe action to take after finishing use of a temporary table.- Specified by:
getTemporaryTableAfterUseActionin interfaceTemporaryTableStrategy
-
getTemporaryTableBeforeUseAction
Description copied from interface:TemporaryTableStrategyThe action to take before beginning use of a temporary table.- Specified by:
getTemporaryTableBeforeUseActionin interfaceTemporaryTableStrategy
-