public class HSQLDBGenerator extends AbstractSQLGenerator
Constructor and Description |
---|
HSQLDBGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
alterTableAddColumn(SQLBatch sqls,
java.lang.String table,
java.lang.String column,
TableColumnDataType dataType,
java.lang.Object defaultValue,
boolean notNull) |
void |
alterTableAddKey(SQLBatch sqls,
java.lang.String table,
ConstraintType constraintType,
java.lang.String constraintName,
java.lang.String columns,
java.lang.String additional) |
void |
alterTableAlterColumn(SQLBatch sqls,
java.lang.String table,
java.lang.String column,
TableColumnDataType dataType,
java.lang.Object defaultValue,
boolean changeNotNull,
boolean shouldBeNotNull)
Parameter notNull may be null if state of "not null constraint" is not to be changed
|
void |
alterTableDropKey(SQLBatch sqls,
java.lang.String table,
ConstraintType constraintType,
java.lang.String constraintName) |
void |
alterTableSetNotNull(SQLBatch sqls,
java.lang.String table,
java.lang.String column,
TableColumnDataType currentDataType,
java.lang.Object currentDefaultValue,
boolean notNull)
Some databases require repeating of column data type where some don't so user should not expect that this operation may change column data type as well.
|
void |
createSequence(SQLBatch sqls,
java.lang.String name) |
void |
createTable(SQLBatch sqls,
Table table) |
void |
dropSequence(SQLBatch sqls,
java.lang.String sequenceToDrop) |
void |
dropTable(SQLBatch sqls,
java.lang.String tableToDrop) |
alterTableAddForeignKey, alterTableAddPrimaryKey, alterTableAddUniqueKey, alterTableDropColumn, alterTableDropForeignKey, alterTableDropPrimaryKey, alterTableDropUniqueKey, areConstraintsViolateColumnDataTypeChange, createIndex, dropIndex, scanDatabase
public void createTable(SQLBatch sqls, Table table)
createTable
in class AbstractSQLGenerator
public void createSequence(SQLBatch sqls, java.lang.String name)
createSequence
in class AbstractSQLGenerator
public void alterTableAddKey(SQLBatch sqls, java.lang.String table, ConstraintType constraintType, java.lang.String constraintName, java.lang.String columns, java.lang.String additional)
alterTableAddKey
in class AbstractSQLGenerator
public void alterTableDropKey(SQLBatch sqls, java.lang.String table, ConstraintType constraintType, java.lang.String constraintName)
alterTableDropKey
in class AbstractSQLGenerator
public void alterTableAddColumn(SQLBatch sqls, java.lang.String table, java.lang.String column, TableColumnDataType dataType, java.lang.Object defaultValue, boolean notNull)
alterTableAddColumn
in class AbstractSQLGenerator
public void alterTableAlterColumn(SQLBatch sqls, java.lang.String table, java.lang.String column, TableColumnDataType dataType, java.lang.Object defaultValue, boolean changeNotNull, boolean shouldBeNotNull)
AbstractSQLGenerator
alterTableAlterColumn
in class AbstractSQLGenerator
public void alterTableSetNotNull(SQLBatch sqls, java.lang.String table, java.lang.String column, TableColumnDataType currentDataType, java.lang.Object currentDefaultValue, boolean notNull)
AbstractSQLGenerator
alterTableSetNotNull
in class AbstractSQLGenerator
public void dropSequence(SQLBatch sqls, java.lang.String sequenceToDrop)
dropSequence
in class AbstractSQLGenerator
public void dropTable(SQLBatch sqls, java.lang.String tableToDrop)
dropTable
in class AbstractSQLGenerator