|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.core.dbsupport.DbSupport
org.unitils.core.dbsupport.HsqldbDbSupport
public class HsqldbDbSupport
Implementation of DbSupport for a hsqldb database
| Field Summary |
|---|
| Fields inherited from class org.unitils.core.dbsupport.DbSupport |
|---|
PROPKEY_IDENTIFIER_QUOTE_STRING, PROPKEY_STORED_IDENTIFIER_CASE |
| Constructor Summary | |
|---|---|
HsqldbDbSupport()
Creates support for HsqlDb databases. |
|
| Method Summary | |
|---|---|
protected void |
disableCheckAndUniqueConstraints()
Disables all check and unique constraints on all tables in the schema |
protected void |
disableNotNullConstraints()
Disables all not null constraints on all tables in the schema |
void |
disableReferentialConstraints()
Disables all referential constraints (e.g. foreign keys) on all table in the schema |
void |
disableValueConstraints()
Disables all value constraints (e.g. not null) on all tables in the schema |
Set<String> |
getColumnNames(String tableName)
Gets the names of all columns of the given table. |
Set<String> |
getIdentityColumnNames(String tableName)
Gets the names of all identity columns of the given table. |
Set<String> |
getSequenceNames()
Retrieves the names of all the sequences in the database schema. |
long |
getSequenceValue(String sequenceName)
Returns the value of the sequence with the given name. |
Set<String> |
getTableNames()
Returns the names of all tables in the database. |
Set<String> |
getTriggerNames()
Retrieves the names of all the triggers in the database schema. |
Set<String> |
getViewNames()
Retrieves the names of all the views in the database schema. |
void |
incrementIdentityColumnToValue(String tableName,
String identityColumnName,
long identityValue)
Increments the identity value for the specified identity column on the specified table to the given value. |
void |
incrementSequenceToValue(String sequenceName,
long newSequenceValue)
Sets the next value of the sequence with the given sequence name to the given sequence value. |
boolean |
supportsCascade()
Cascade are supported. |
boolean |
supportsIdentityColumns()
Identity columns are supported. |
boolean |
supportsSequences()
Sequences are supported. |
boolean |
supportsTriggers()
Triggers are supported. |
| Methods inherited from class org.unitils.core.dbsupport.DbSupport |
|---|
dropMaterializedView, dropSequence, dropSynonym, dropTable, dropTrigger, dropType, dropView, getDatabaseDialect, getIdentifierQuoteString, getLongDataType, getMaterializedViewNames, getSchemaName, getSQLHandler, getStoredIdentifierCase, getSynonymNames, getTextDataType, getTypeNames, init, qualified, quoted, supportsMaterializedViews, supportsSynonyms, supportsTypes, toCorrectCaseIdentifier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HsqldbDbSupport()
| Method Detail |
|---|
public Set<String> getTableNames()
getTableNames in class DbSupportpublic Set<String> getColumnNames(String tableName)
getColumnNames in class DbSupporttableName - The table, not null
public Set<String> getViewNames()
getViewNames in class DbSupportpublic Set<String> getSequenceNames()
getSequenceNames in class DbSupportpublic Set<String> getTriggerNames()
getTriggerNames in class DbSupportpublic void disableReferentialConstraints()
disableReferentialConstraints in class DbSupportpublic void disableValueConstraints()
disableValueConstraints in class DbSupportprotected void disableCheckAndUniqueConstraints()
protected void disableNotNullConstraints()
public long getSequenceValue(String sequenceName)
getSequenceValue in class DbSupportsequenceName - The sequence, not null
public void incrementSequenceToValue(String sequenceName,
long newSequenceValue)
incrementSequenceToValue in class DbSupportsequenceName - The sequence, not nullnewSequenceValue - The value to setpublic Set<String> getIdentityColumnNames(String tableName)
getIdentityColumnNames in class DbSupporttableName - The table, not null
public void incrementIdentityColumnToValue(String tableName,
String identityColumnName,
long identityValue)
incrementIdentityColumnToValue in class DbSupporttableName - The table with the identity column, not nullidentityColumnName - The column, not nullidentityValue - The new valuepublic boolean supportsSequences()
supportsSequences in class DbSupportpublic boolean supportsTriggers()
supportsTriggers in class DbSupportpublic boolean supportsIdentityColumns()
supportsIdentityColumns in class DbSupportpublic boolean supportsCascade()
supportsCascade in class DbSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||