public class MsSqlDbmsBean extends AbstractDbmsBean
| Constructor and Description |
|---|
MsSqlDbmsBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dropConstraints(Statement statement,
String tableName,
String columnName,
List<String> defaultConstraintNames) |
protected void |
dropIndex(Statement statement,
String indexName) |
String |
getConcat(String... values) |
String |
getQuery(com.atlassian.bamboo.utils.db.SqlQueryProvider sqlQueryProvider) |
boolean |
isMsSqlServer() |
PreparedStatement |
prepareStatement(Connection connection,
com.atlassian.bamboo.utils.db.PreparedStatementProvider preparedStatementProvider) |
void |
resizeVarcharColumn(Statement statement,
String tableName,
String columnName,
int newSize,
boolean isNullable,
String defaultValue) |
dropColumn, dropColumn, isColumnPresent, isColumnPresent, isHsqldb, isMySql, isOracle, isPostgreSql, isTablePresent, isTablePresent@NotNull public String getQuery(@NotNull com.atlassian.bamboo.utils.db.SqlQueryProvider sqlQueryProvider)
@NotNull public PreparedStatement prepareStatement(@NotNull Connection connection, @NotNull com.atlassian.bamboo.utils.db.PreparedStatementProvider preparedStatementProvider) throws SQLException
SQLExceptionpublic void resizeVarcharColumn(@NotNull
Statement statement,
String tableName,
String columnName,
int newSize,
boolean isNullable,
@Nullable
String defaultValue)
throws SQLException
SQLExceptionpublic boolean isMsSqlServer()
isMsSqlServer in interface com.atlassian.bamboo.utils.db.DbmsBeanisMsSqlServer in class AbstractDbmsBeanprotected void dropIndex(Statement statement, String indexName) throws SQLException
dropIndex in class AbstractDbmsBeanSQLExceptionprotected void dropConstraints(Statement statement, String tableName, String columnName, List<String> defaultConstraintNames)
dropConstraints in class AbstractDbmsBeanCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.