public class H2DbSupport
extends org.unitils.core.dbsupport.DbSupport
DbSupport for a H2 database| Constructor and Description |
|---|
H2DbSupport()
Creates support for H2 databases.
|
| Modifier and Type | Method and Description |
|---|---|
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 tables 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 primary 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.
|
dropMaterializedView, dropSequence, dropSynonym, dropTable, dropTrigger, dropType, dropView, getDatabaseDialect, getIdentifierQuoteString, getLongDataType, getMaterializedViewNames, getSchemaName, getSQLHandler, getStoredIdentifierCase, getSynonymNames, getTextDataType, getTypeNames, init, qualified, quoted, supportsMaterializedViews, supportsSynonyms, supportsTypes, toCorrectCaseIdentifierpublic Set<String> getTableNames()
getTableNames in class org.unitils.core.dbsupport.DbSupportpublic Set<String> getColumnNames(String tableName)
getColumnNames in class org.unitils.core.dbsupport.DbSupporttableName - The table, not nullpublic Set<String> getIdentityColumnNames(String tableName)
getIdentityColumnNames in class org.unitils.core.dbsupport.DbSupporttableName - The table, not nullpublic Set<String> getViewNames()
getViewNames in class org.unitils.core.dbsupport.DbSupportpublic Set<String> getSequenceNames()
getSequenceNames in class org.unitils.core.dbsupport.DbSupportpublic Set<String> getTriggerNames()
getTriggerNames in class org.unitils.core.dbsupport.DbSupportpublic long getSequenceValue(String sequenceName)
getSequenceValue in class org.unitils.core.dbsupport.DbSupportsequenceName - The sequence, not nullpublic void incrementSequenceToValue(String sequenceName, long newSequenceValue)
incrementSequenceToValue in class org.unitils.core.dbsupport.DbSupportsequenceName - The sequence, not nullnewSequenceValue - The value to setpublic void incrementIdentityColumnToValue(String tableName, String identityColumnName, long identityValue)
incrementIdentityColumnToValue in class org.unitils.core.dbsupport.DbSupporttableName - The table with the identity column, not nullidentityColumnName - The column, not nullidentityValue - The new valuepublic void disableReferentialConstraints()
disableReferentialConstraints in class org.unitils.core.dbsupport.DbSupportpublic void disableValueConstraints()
disableValueConstraints in class org.unitils.core.dbsupport.DbSupportprotected void disableCheckAndUniqueConstraints()
protected void disableNotNullConstraints()
public boolean supportsSequences()
supportsSequences in class org.unitils.core.dbsupport.DbSupportpublic boolean supportsTriggers()
supportsTriggers in class org.unitils.core.dbsupport.DbSupportpublic boolean supportsIdentityColumns()
supportsIdentityColumns in class org.unitils.core.dbsupport.DbSupportpublic boolean supportsCascade()
supportsCascade in class org.unitils.core.dbsupport.DbSupportCopyright © 2010-2015 Henix, henix.fr. All Rights Reserved.