public class HsqlDbmsBean extends AbstractDbmsBean
Constructor and Description |
---|
HsqlDbmsBean() |
Modifier and Type | Method and Description |
---|---|
protected void |
dropConstraints(Statement statement,
String tableName,
String columnName,
List<String> defaultConstraintNames) |
String |
getConcat(String... values)
Provide a different SQL concatenation operator depending on SQL engine used.
|
DatabaseType |
getDatabaseType()
Detect used database type
|
String |
getQuery(SqlQueryProvider sqlQueryProvider)
Provide a different SQL query depending on SQL engine used.
|
boolean |
isHsqldb() |
PreparedStatement |
prepareStatement(Connection connection,
PreparedStatementProvider preparedStatementProvider)
Provide a different
PreparedStatement depending on SQL engine used. |
void |
resizeVarcharColumn(Statement statement,
String tableName,
String columnName,
int newSize,
boolean isNullable,
String defaultValue) |
dropColumn, dropColumn, dropIndex, isColumnPresent, isColumnPresent, isMsSqlServer, isMySql, isOracle, isPostgreSql, isTablePresent, isTablePresent
@NotNull public String getQuery(@NotNull SqlQueryProvider sqlQueryProvider)
DbmsBean
@NotNull public String getConcat(String... values)
DbmsBean
values
- the values to concatenate.@NotNull public PreparedStatement prepareStatement(@NotNull Connection connection, @NotNull PreparedStatementProvider preparedStatementProvider) throws SQLException
DbmsBean
PreparedStatement
depending on SQL engine used.SQLException
public void resizeVarcharColumn(@NotNull Statement statement, String tableName, String columnName, int newSize, boolean isNullable, @Nullable String defaultValue) throws SQLException
SQLException
public boolean isHsqldb()
isHsqldb
in interface DbmsBean
isHsqldb
in class AbstractDbmsBean
public DatabaseType getDatabaseType()
DbmsBean
protected void dropConstraints(Statement statement, String tableName, String columnName, List<String> defaultConstraintNames)
dropConstraints
in class AbstractDbmsBean
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.