com.atlassian.confluence.upgrade.ddl
Class RenameTableCommand

java.lang.Object
  extended by 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
RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName)
          Create a rename table command for table renames where both the old and new names aren't quoted.
RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig, String oldTableName, String newTableName, boolean oldTableNameQuoted, boolean newTableNameQuoted)
          Create a rename table command
 
Method Summary
 String getStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameTableCommand

public RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig,
                          String oldTableName,
                          String newTableName,
                          boolean oldTableNameQuoted,
                          boolean newTableNameQuoted)
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

public RenameTableCommand(com.atlassian.config.db.HibernateConfig hibernateConfig,
                          String oldTableName,
                          String newTableName)
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 Detail

getStatement

public String getStatement()
Specified by:
getStatement in interface DdlCommand


Copyright © 2003–2015 Atlassian. All rights reserved.