com.atlassian.confluence.upgrade.ddl
Class AddForeignKeyCommand
java.lang.Object
com.atlassian.confluence.upgrade.ddl.AddForeignKeyCommand
- All Implemented Interfaces:
- AlterTableCommand
public class AddForeignKeyCommand
- extends java.lang.Object
- implements AlterTableCommand
A command for creating a named foreign key constraint between two columns
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createCommand
public static AddForeignKeyCommand createCommand(java.lang.String constraintName,
java.lang.String sourceColumn,
java.lang.String destinationTable,
java.lang.String destinationColumn)
getCommandName
public java.lang.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 java.lang.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"
Copyright © 2003-2013 Atlassian. All Rights Reserved.