public abstract class AbstractDbmsBean extends Object implements com.atlassian.bamboo.utils.db.DbmsBean
| Constructor and Description |
|---|
AbstractDbmsBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dropColumn(Connection connection,
String tableName,
String columnName) |
boolean |
dropColumn(Connection connection,
String tableName,
String columnName,
List<String> defaultConstraintNames,
String indexName) |
protected void |
dropConstraints(Statement statement,
String tableName,
String columnName,
List<String> defaultConstraintNames) |
protected void |
dropIndex(Statement statement,
String indexName) |
boolean |
isColumnPresent(Connection connection,
String tableName,
String columnName) |
boolean |
isColumnPresent(Statement statement,
String tableName,
String columnName) |
boolean |
isHsqldb() |
boolean |
isMsSqlServer() |
boolean |
isMySql() |
boolean |
isOracle() |
boolean |
isPostgreSql() |
boolean |
isTablePresent(Connection connection,
String tableName) |
boolean |
isTablePresent(Statement statement,
String tableName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConcat, getQuery, prepareStatement, resizeVarcharColumnpublic boolean isColumnPresent(@NotNull
Connection connection,
@NotNull
String tableName,
@NotNull
String columnName)
throws SQLException
isColumnPresent in interface com.atlassian.bamboo.utils.db.DbmsBeanSQLExceptionpublic boolean isColumnPresent(@NotNull
Statement statement,
@NotNull
String tableName,
@NotNull
String columnName)
throws SQLException
isColumnPresent in interface com.atlassian.bamboo.utils.db.DbmsBeanSQLExceptionpublic boolean dropColumn(@NotNull
Connection connection,
@NotNull
String tableName,
@NotNull
String columnName,
@NotNull
List<String> defaultConstraintNames,
@Nullable
String indexName)
throws SQLException
dropColumn in interface com.atlassian.bamboo.utils.db.DbmsBeanSQLExceptionprotected void dropConstraints(Statement statement, String tableName, String columnName, List<String> defaultConstraintNames)
protected void dropIndex(Statement statement, String indexName) throws SQLException
SQLExceptionpublic boolean dropColumn(@NotNull
Connection connection,
@NotNull
String tableName,
@NotNull
String columnName)
throws SQLException
dropColumn in interface com.atlassian.bamboo.utils.db.DbmsBeanSQLExceptionpublic boolean isTablePresent(@NotNull
Connection connection,
@NotNull
String tableName)
throws SQLException
isTablePresent in interface com.atlassian.bamboo.utils.db.DbmsBeanSQLExceptionpublic boolean isTablePresent(@NotNull
Statement statement,
@NotNull
String tableName)
isTablePresent in interface com.atlassian.bamboo.utils.db.DbmsBeanpublic boolean isHsqldb()
isHsqldb in interface com.atlassian.bamboo.utils.db.DbmsBeanpublic boolean isMsSqlServer()
isMsSqlServer in interface com.atlassian.bamboo.utils.db.DbmsBeanpublic boolean isMySql()
isMySql in interface com.atlassian.bamboo.utils.db.DbmsBeanpublic boolean isOracle()
isOracle in interface com.atlassian.bamboo.utils.db.DbmsBeanpublic boolean isPostgreSql()
isPostgreSql in interface com.atlassian.bamboo.utils.db.DbmsBeanCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.