Class RenameTableCommand

java.lang.Object
com.atlassian.confluence.upgrade.ddl.RenameTableCommand
All Implemented Interfaces:
DdlCommand

public final class RenameTableCommand extends Object implements DdlCommand
Used to rename a table
Since:
5.7
  • Constructor Details

    • RenameTableCommand

      public RenameTableCommand(HibernateDatabaseCapabilities databaseCapabilities, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted)
      Create a rename table command
      Parameters:
      databaseCapabilities - Hibernate configuration object
      oldTableName - existing table name
      newTableName - new table name
      oldTableNameQuoted - whether the existing table is quoted (always true for AO tables).
      newTableNameQuoted - whether the new table name is quoted (always true for AO tables)
      Since:
      7.13.17
    • RenameTableCommand

      public RenameTableCommand(HibernateDatabaseCapabilities databaseCapabilities, String oldTableName, String newTableName)
      Create a rename table command for table renames where both the old and new names aren't quoted.
      Parameters:
      databaseCapabilities - Hibernate configuration object
      oldTableName - existing table name
      newTableName - new table name
      Since:
      7.13.17
    • RenameTableCommand

      @Deprecated public RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted)
      Deprecated.
      since 7.13.17
      Create a rename table command
      Parameters:
      hibernateConfig - Hibernate configuration object
      oldTableName - existing table name
      newTableName - new table name
      oldTableNameQuoted - whether the existing table is quoted (always true for AO tables).
      newTableNameQuoted - whether the new table name is quoted (always true for AO tables)
    • RenameTableCommand

      @Deprecated public RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName)
      Deprecated.
      since 7.13.17
      Create a rename table command for table renames where both the old and new names aren't quoted.
      Parameters:
      hibernateConfig - Hibernate configuration object
      oldTableName - existing table name
      newTableName - new table name
  • Method Details