com.atlassian.confluence.upgrade.ddl
Class DropUniqueConstraintCommand

java.lang.Object
  extended by com.atlassian.confluence.upgrade.ddl.DropUniqueConstraintCommand
All Implemented Interfaces:
AlterTableCommand

public class DropUniqueConstraintCommand
extends Object
implements AlterTableCommand

Drops a unique constraint.


Constructor Summary
DropUniqueConstraintCommand(ConfluenceHibernateConfig hibernateConfig, String constraintName)
           
 
Method Summary
 String getCommandName()
           
 String getCommandParameters()
           
 String getConstraintName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropUniqueConstraintCommand

public DropUniqueConstraintCommand(ConfluenceHibernateConfig hibernateConfig,
                                   String constraintName)
Method Detail

getCommandName

public String getCommandName()
Specified by:
getCommandName in interface AlterTableCommand
Returns:
The keyword/name of the current command for the current database (e.g. altering a column is "alter column" on PostgreSQL and "modify" on MySQL.

getCommandParameters

public String getCommandParameters()
Specified by:
getCommandParameters in interface AlterTableCommand
Returns:
The part that comes after the command name. E.g. "colname set not null" which would be after "alter column colname set not null"

getConstraintName

public String getConstraintName()


Copyright © 2003-2011 Atlassian. All Rights Reserved.