com.atlassian.bamboo.setup
Class DbmsSpecificUtils
java.lang.Object
com.atlassian.bamboo.setup.DbmsSpecificUtils
public class DbmsSpecificUtils
- extends java.lang.Object
This class holds utility methods used when DBMS has to be accessed without Hibernate.
Constructor Summary |
DbmsSpecificUtils(com.atlassian.config.db.HibernateConfig hibernateConfig)
|
Method Summary |
static void |
dropMsSqlForeignKeyConstraints(java.sql.Statement statement,
java.lang.String tableName)
Drops foreign key constraints defined for a table |
static java.sql.ResultSet |
getMsSqlForeignKeyConstraintsForTable(java.sql.Statement statement,
java.lang.String tableName)
Retrieves foreign key constraints defined for a table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbmsSpecificUtils
public DbmsSpecificUtils(@NotNull
com.atlassian.config.db.HibernateConfig hibernateConfig)
getMsSqlForeignKeyConstraintsForTable
public static java.sql.ResultSet getMsSqlForeignKeyConstraintsForTable(java.sql.Statement statement,
java.lang.String tableName)
throws java.sql.SQLException
- Retrieves foreign key constraints defined for a table
- Parameters:
statement
- tableName
-
- Returns:
-
- Throws:
java.sql.SQLException
dropMsSqlForeignKeyConstraints
public static void dropMsSqlForeignKeyConstraints(java.sql.Statement statement,
java.lang.String tableName)
throws java.sql.SQLException
- Drops foreign key constraints defined for a table
- Throws:
java.sql.SQLException
Copyright © 2012 Atlassian. All Rights Reserved.