|
||||||||||
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.OracleDbSupport
public class OracleDbSupport
Implementation of DbSupport
for an Oracle database.
Field Summary |
---|
Fields inherited from class org.unitils.core.dbsupport.DbSupport |
---|
PROPKEY_IDENTIFIER_QUOTE_STRING, PROPKEY_STORED_IDENTIFIER_CASE |
Constructor Summary | |
---|---|
OracleDbSupport()
Creates support for Oracle databases. |
Method Summary | |
---|---|
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 |
void |
dropMaterializedView(String materializedViewName)
Removes the materialized view with the given name from the database Note: the view name is surrounded with quotes, making it case-sensitive. |
void |
dropTable(String tableName)
Removes the table with the given name from the database. |
void |
dropType(String typeName)
Drops the type with the given name from the database Note: the type name is surrounded with quotes, making it case-sensitive. |
void |
dropView(String viewName)
Removes the view with the given name from the database Note: the view name is surrounded with quotes, making it case-sensitive. |
Set<String> |
getColumnNames(String tableName)
Gets the names of all columns of the given table. |
String |
getLongDataType()
Gets the column type suitable to store values of the Java java.lang.Long type. |
Set<String> |
getMaterializedViewNames()
Retrieves the names of all materialized views in the database schema. |
protected Integer |
getOracleMajorVersionNumber()
|
Set<String> |
getSequenceNames()
Retrieves the names of all sequences in the database schema. |
long |
getSequenceValue(String sequenceName)
Returns the value of the sequence with the given name. |
Set<String> |
getSynonymNames()
Retrieves the names of all synonyms in the database schema. |
Set<String> |
getTableNames()
Returns the names of all tables in the database. |
String |
getTextDataType(int length)
Gets the column type suitable to store text values. |
Set<String> |
getTriggerNames()
Retrieves the names of all triggers in the database schema. |
Set<String> |
getTypeNames()
Retrieves the names of all the types in the database schema. |
Set<String> |
getViewNames()
Retrieves the names of all views in the database schema. |
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 |
supportsMaterializedViews()
Materialized views are supported |
protected boolean |
supportsPurge()
|
boolean |
supportsSequences()
Sequences are supported. |
boolean |
supportsSynonyms()
Synonyms are supported |
boolean |
supportsTriggers()
Triggers are supported. |
boolean |
supportsTypes()
Types are supported |
Methods inherited from class org.unitils.core.dbsupport.DbSupport |
---|
dropSequence, dropSynonym, dropTrigger, getDatabaseDialect, getIdentifierQuoteString, getIdentityColumnNames, getSchemaName, getSQLHandler, getStoredIdentifierCase, incrementIdentityColumnToValue, init, qualified, quoted, supportsIdentityColumns, toCorrectCaseIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OracleDbSupport()
Method Detail |
---|
public Set<String> getTableNames()
getTableNames
in class DbSupport
public Set<String> getColumnNames(String tableName)
getColumnNames
in class DbSupport
tableName
- The table, not null
public Set<String> getViewNames()
getViewNames
in class DbSupport
public Set<String> getMaterializedViewNames()
getMaterializedViewNames
in class DbSupport
public Set<String> getSynonymNames()
getSynonymNames
in class DbSupport
public Set<String> getSequenceNames()
getSequenceNames
in class DbSupport
public Set<String> getTriggerNames()
getTriggerNames
in class DbSupport
public Set<String> getTypeNames()
getTypeNames
in class DbSupport
public void dropTable(String tableName)
dropTable
in class DbSupport
tableName
- The table to drop (case-sensitive), not nullpublic void dropView(String viewName)
dropView
in class DbSupport
viewName
- The view to drop (case-sensitive), not nullpublic void dropMaterializedView(String materializedViewName)
dropMaterializedView
in class DbSupport
materializedViewName
- The view to drop (case-sensitive), not nullpublic void dropType(String typeName)
dropType
in class DbSupport
typeName
- The type to drop (case-sensitive), not nullpublic void disableReferentialConstraints()
disableReferentialConstraints
in class DbSupport
public void disableValueConstraints()
disableValueConstraints
in class DbSupport
public long getSequenceValue(String sequenceName)
getSequenceValue
in class DbSupport
sequenceName
- The sequence, not null
public void incrementSequenceToValue(String sequenceName, long newSequenceValue)
incrementSequenceToValue
in class DbSupport
sequenceName
- The sequence, not nullnewSequenceValue
- The value to setpublic String getLongDataType()
java.lang.Long
type.
getLongDataType
in class DbSupport
public String getTextDataType(int length)
getTextDataType
in class DbSupport
length
- The nr of characters.
public boolean supportsSynonyms()
supportsSynonyms
in class DbSupport
public boolean supportsSequences()
supportsSequences
in class DbSupport
public boolean supportsTriggers()
supportsTriggers
in class DbSupport
public boolean supportsTypes()
supportsTypes
in class DbSupport
public boolean supportsMaterializedViews()
supportsMaterializedViews
in class DbSupport
public boolean supportsCascade()
supportsCascade
in class DbSupport
protected boolean supportsPurge()
protected Integer getOracleMajorVersionNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |