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 Summary
Constructors Constructor Description RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName)
Deprecated.since 7.20RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted)
Deprecated.since 7.20RenameTableCommand(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
-
-
-
Constructor Detail
-
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.20
-
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.20
-
RenameTableCommand
@Deprecated public RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted)
Deprecated.since 7.20Create 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.20Create 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 Detail
-
getStatement
public String getStatement()
- Specified by:
getStatement
in interfaceDdlCommand
-
-