Package org.hibernate.dialect.temptable
Class OracleLocalTemporaryTableStrategy
java.lang.Object
org.hibernate.dialect.temptable.StandardLocalTemporaryTableStrategy
org.hibernate.dialect.temptable.OracleLocalTemporaryTableStrategy
- All Implemented Interfaces:
TemporaryTableStrategy
Strategy to interact with Oracle private temporary tables that were introduced in Oracle 18c.
-
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.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.boolean
Does this database support null constraints for temporary table columns for this strategy?boolean
Does this database support primary keys for temporary tables for this strategy?Methods inherited from class org.hibernate.dialect.temptable.StandardLocalTemporaryTableStrategy
getCreateTemporaryTableColumnAnnotation, getTemporaryTableAfterUseAction, getTemporaryTableBeforeUseAction, getTemporaryTableDropCommand, getTemporaryTableKind, getTemporaryTableTruncateCommand
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OracleLocalTemporaryTableStrategy
public OracleLocalTemporaryTableStrategy()
-
-
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
- Overrides:
adjustTemporaryTableName
in classStandardLocalTemporaryTableStrategy
-
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
- Overrides:
getTemporaryTableCreateOptions
in classStandardLocalTemporaryTableStrategy
-
getTemporaryTableCreateCommand
Description copied from interface:TemporaryTableStrategy
The command to create a temporary table.- Specified by:
getTemporaryTableCreateCommand
in interfaceTemporaryTableStrategy
- Overrides:
getTemporaryTableCreateCommand
in classStandardLocalTemporaryTableStrategy
-
supportsTemporaryTablePrimaryKey
public boolean supportsTemporaryTablePrimaryKey()Description copied from interface:TemporaryTableStrategy
Does this database support primary keys for temporary tables for this strategy?- Returns:
- true by default, since most do
-
supportsTemporaryTableNullConstraint
public boolean supportsTemporaryTableNullConstraint()Description copied from interface:TemporaryTableStrategy
Does this database support null constraints for temporary table columns for this strategy?- Returns:
- true by default, since most do
-