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 Details

    • adjustTemporaryTableName

      String adjustTemporaryTableName(String desiredTableName)
      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, or null 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

      String getCreateTemporaryTableColumnAnnotation(int sqlTypeCode)
      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