com.atlassian.bamboo.setup
Class DbmsSpecificUtils

java.lang.Object
  extended by 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
 

Constructor Detail

DbmsSpecificUtils

public DbmsSpecificUtils(@NotNull
                         com.atlassian.config.db.HibernateConfig hibernateConfig)
Method Detail

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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.