Class RenameTableCommand
java.lang.Object
com.atlassian.confluence.upgrade.ddl.RenameTableCommand
- All Implemented Interfaces:
DdlCommand
Used to rename a table
- Since:
- 5.7
-
Constructor Summary
ConstructorsConstructorDescriptionRenameTableCommand
(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName) Deprecated.since 7.13.17RenameTableCommand
(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted) Deprecated.since 7.13.17RenameTableCommand
(HibernateDatabaseCapabilities databaseCapabilities, String oldTableName, String newTableName) Create a rename table command for table renames where both the old and new names aren't quoted.RenameTableCommand
(HibernateDatabaseCapabilities databaseCapabilities, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted) Create a rename table command -
Method Summary
-
Constructor Details
-
RenameTableCommand
public RenameTableCommand(HibernateDatabaseCapabilities databaseCapabilities, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted) Create a rename table command- Parameters:
databaseCapabilities
- Hibernate configuration objectoldTableName
- existing table namenewTableName
- new table nameoldTableNameQuoted
- 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 objectoldTableName
- existing table namenewTableName
- 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.17Create a rename table command- Parameters:
hibernateConfig
- Hibernate configuration objectoldTableName
- existing table namenewTableName
- new table nameoldTableNameQuoted
- 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.17Create a rename table command for table renames where both the old and new names aren't quoted.- Parameters:
hibernateConfig
- Hibernate configuration objectoldTableName
- existing table namenewTableName
- new table name
-
-
Method Details
-
getStatement
- Specified by:
getStatement
in interfaceDdlCommand
-