|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.setup.DbmsSpecificUtils
public class DbmsSpecificUtils
This class holds utility methods used when DBMS has to be accessed without Hibernate.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_HIBERNATE_DIALECT
|
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 |
boolean |
isHsqldb()
Checks whether the db configured in Hibernate is HSQL |
boolean |
isMsSqlServer()
Checks whether the db configured in Hibernate is MS SQL Server (international/standard) |
boolean |
isMySql()
Checks whether the db configured in Hibernate is MySQL |
boolean |
isOracle()
Checks whether the db configured in Hibernate is Oracle (8/9 dialect) |
boolean |
isPostgreSQL()
Checks whether the db configured in Hibernate is PostgreSQL |
static boolean |
isTablePresent(java.sql.Connection connection,
java.lang.String tableName)
Checks whether given table is present in the database |
static boolean |
isTablePresent(java.sql.Statement statement,
java.lang.String tableName)
Checks whether given table is present in the database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_HIBERNATE_DIALECT
Constructor Detail |
---|
public DbmsSpecificUtils(@NotNull com.atlassian.config.db.HibernateConfig hibernateConfig)
Method Detail |
---|
public boolean isMySql()
public boolean isOracle()
public boolean isHsqldb()
public boolean isPostgreSQL()
public boolean isMsSqlServer()
public static java.sql.ResultSet getMsSqlForeignKeyConstraintsForTable(java.sql.Statement statement, java.lang.String tableName) throws java.sql.SQLException
statement
- tableName
-
java.sql.SQLException
public static void dropMsSqlForeignKeyConstraints(java.sql.Statement statement, java.lang.String tableName) throws java.sql.SQLException
java.sql.SQLException
public static boolean isTablePresent(java.sql.Statement statement, java.lang.String tableName)
statement
- tableName
-
public static boolean isTablePresent(java.sql.Connection connection, java.lang.String tableName) throws java.sql.SQLException
statement
- tableName
-
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |