public class HsqlDbmsBean extends AbstractDbmsBean
DbmsBean.ColumnDefinition, DbmsBean.ConstraintDefinition, DbmsBean.IndexDefinitionLARGE_STRING_TYPE| Constructor and Description |
|---|
HsqlDbmsBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dropConstraints(Connection connection,
String tableName,
String columnName) |
void |
dropPrimaryKey(Connection connection,
String tableName)
Drops the primary key on a table.
|
String |
getConcat(String... values)
Provide a different SQL concatenation operator depending on SQL engine used.
|
Collection<DbmsBean.ConstraintDefinition> |
getConstraints(Connection connection,
String table,
String column)
http://hsqldb.sourcearchive.com/documentation/1.8.0.10-10/classorg_1_1hsqldb_1_1DatabaseInformationFull.html
|
DatabaseType |
getDatabaseType()
Detect used database type
|
Collection<DbmsBean.IndexDefinition> |
getIndices(Connection c,
String table) |
String |
getQuery(SqlQueryProvider sqlQueryProvider)
Provide a different SQL query depending on SQL engine used.
|
protected String |
getSchemaUncached(Connection c) |
boolean |
isHsqldb() |
PreparedStatement |
prepareStatement(Connection connection,
PreparedStatementProvider preparedStatementProvider)
Provide a different
PreparedStatement depending on SQL engine used. |
void |
renameColumn(Connection c,
String tableName,
String oldName,
String newName)
Rename columns.
|
void |
resizeVarcharColumn(Connection connection,
String tableName,
String columnName,
int newSize,
boolean isNullable,
String defaultValue) |
actuallyChangeColumnToNotNull, addColumn, changeColumnDefinition, changeColumnToNotNull, changeColumnType, changeTableNameToUpperCase, createIndex, createPrimaryKey, createUniqueConstraint, dropColumn, dropConstraint, dropForeignKeyConstraint, dropIndex, dropIndexIfExists, dropTable, getColumnDefinition, getColumns, getConstraintDefinitions, getConstraintType, getIndexNames, getSchema, getTables, isColumnPresent, isColumnPresent, isColumnPresent, isMsSqlServer, isMySql, isOracle, isPostgreSql, isTablePresent, migrateColumnType, newColumnDefinition, quoteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCatalog@NotNull public String getQuery(@NotNull SqlQueryProvider sqlQueryProvider)
DbmsBean@NotNull public String getConcat(String... values)
DbmsBeanvalues - the values to concatenate.@NotNull public Collection<DbmsBean.ConstraintDefinition> getConstraints(Connection connection, @NotNull String table, @Nullable String column) throws SQLException
SQLException@NotNull public PreparedStatement prepareStatement(@NotNull Connection connection, @NotNull PreparedStatementProvider preparedStatementProvider) throws SQLException
DbmsBeanPreparedStatement depending on SQL engine used.SQLExceptionpublic void resizeVarcharColumn(@NotNull
Connection connection,
String tableName,
String columnName,
int newSize,
boolean isNullable,
@Nullable
String defaultValue)
throws SQLException
SQLExceptionpublic boolean isHsqldb()
isHsqldb in interface DbmsBeanisHsqldb in class AbstractDbmsBeanpublic DatabaseType getDatabaseType()
DbmsBeanprotected void dropConstraints(Connection connection, String tableName, String columnName)
dropConstraints in class AbstractDbmsBeanpublic void dropPrimaryKey(Connection connection, String tableName) throws SQLException
DbmsBeanSQLExceptionpublic void renameColumn(Connection c, String tableName, String oldName, String newName) throws SQLException
DbmsBeanrenameColumn in interface DbmsBeanrenameColumn in class AbstractDbmsBeanSQLExceptionpublic Collection<DbmsBean.IndexDefinition> getIndices(Connection c, @NotNull String table) throws SQLException
getIndices in interface DbmsBeangetIndices in class AbstractDbmsBeanSQLException@Nullable protected String getSchemaUncached(Connection c) throws SQLException
getSchemaUncached in class AbstractDbmsBeanSQLExceptionCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.