com.atlassian.confluence.upgrade.ddl
Class DropForeignKeyConstraintCommandFactory
java.lang.Object
com.atlassian.confluence.upgrade.ddl.DropForeignKeyConstraintCommandFactory
public class DropForeignKeyConstraintCommandFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DropForeignKeyConstraintCommandFactory
public DropForeignKeyConstraintCommandFactory(BootstrapManager bootstrapManager,
org.springframework.transaction.PlatformTransactionManager platformTransactionManager,
net.sf.hibernate.SessionFactory sessionFactory)
getCommand
public DropForeignKeyConstraintCommand getCommand(String tableName,
String columnName)
- Returns:
- A command to drop the FK's on the specified column, null if the column cannot be found.
getCommandWithExistingConnection
public DropForeignKeyConstraintCommand getCommandWithExistingConnection(Connection connection,
String tableName,
String columnName)
- Use this when you want to get the table metadata on the same transaction as other DDL commands (e.g. drop index)
to prevent deadlocks.
Copyright © 2003–2015 Atlassian. All rights reserved.