|
||||||||||
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 |
static boolean |
isColumnPresent(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName)
Deprecated. since 3.3 Use DbmsBean.isColumnPresent(Connection, String, String) |
static boolean |
isColumnPresent(java.sql.Statement statement,
java.lang.String tableName,
java.lang.String columnName)
Deprecated. since 3.3 Use DbmsBean.isColumnPresent(Statement, String, String) |
boolean |
isHsqldb()
Deprecated. since 3.3 Use DbmsBean.isHsqldb() |
boolean |
isMsSqlServer()
Deprecated. since 3.3 Use DbmsBean.isMsSqlServer() |
boolean |
isMySql()
Deprecated. since 3.3 Use DbmsBean.isMySql() |
boolean |
isOracle()
Deprecated. since 3.3 Use DbmsBean.isOracle() |
boolean |
isPostgreSQL()
Deprecated. since 3.3 Use DbmsBean.isPostgreSql() |
static boolean |
isTablePresent(java.sql.Connection connection,
java.lang.String tableName)
Deprecated. since 3.3 Use DbmsBean.isTablePresent(Connection, String) |
static boolean |
isTablePresent(java.sql.Statement statement,
java.lang.String tableName)
Deprecated. since 3.3 Use DbmsBean.isTablePresent(Statement, String) |
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 |
---|
@Deprecated public boolean isMySql()
DbmsBean.isMySql()
@Deprecated public boolean isOracle()
DbmsBean.isOracle()
@Deprecated public boolean isHsqldb()
DbmsBean.isHsqldb()
@Deprecated public boolean isPostgreSQL()
DbmsBean.isPostgreSql()
@Deprecated public boolean isMsSqlServer()
DbmsBean.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
@Deprecated public static boolean isTablePresent(java.sql.Statement statement, java.lang.String tableName)
DbmsBean.isTablePresent(Statement, String)
statement
- tableName
-
@Deprecated public static boolean isTablePresent(java.sql.Connection connection, java.lang.String tableName) throws java.sql.SQLException
DbmsBean.isTablePresent(Connection, String)
connection
- connection used to verify DB table existencetableName
- name of DB table
java.sql.SQLException
- if a database error occurs or connection is closed@Deprecated public static boolean isColumnPresent(@NotNull java.sql.Statement statement, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName) throws java.sql.SQLException
DbmsBean.isColumnPresent(Statement, String, String)
statement
- tableName
- columnName
-
java.sql.SQLException
@Deprecated public static boolean isColumnPresent(@NotNull java.sql.Connection connection, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName) throws java.sql.SQLException
DbmsBean.isColumnPresent(Connection, String, String)
connection
- tableName
- columnName
-
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |