|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.db.AbstractDBObjectProvider
oracle.javatools.db.AbstractDatabase
oracle.javatools.db.ddl.DDLDatabase
oracle.javatools.db.dictionary.DictionaryDatabase
public abstract class DictionaryDatabase
Database implementation that uses a DictionaryQueries object to provide the queries on the database's dictionary.
DictionaryQueries| Field Summary |
|---|
| Fields inherited from class oracle.javatools.db.AbstractDatabase |
|---|
SQLSTATE_NOT_IMPLEMENTED |
| Fields inherited from class oracle.javatools.db.AbstractDBObjectProvider |
|---|
CASE_SENSITIVE_NAME_POLICY, EMPTY_LIST, LOWER_CASE_NAME_POLICY, MIXED_CASE_NAME_POLICY, TIMESTAMP_PROPERTY, UPPER_CASE_NAME_POLICY |
| Fields inherited from interface oracle.javatools.db.Database |
|---|
FOUR_GIG, GENERIC_JDBC_DATABASE, SOURCE_TYPE_BODY, SOURCE_TYPE_SPEC, TWO_GIG |
| Fields inherited from interface oracle.javatools.db.DBObjectProvider |
|---|
CREATE_PRIVILEDGE, DELETE_PRIVILEDGE, MODIFY_PRIVILEDGE, NEW_FROM_TEMPLATE_TYPE |
| Constructor Summary | |
|---|---|
protected |
DictionaryDatabase(java.lang.String connStore,
java.lang.String connName,
java.sql.Connection conn)
|
| Method Summary | |
|---|---|
protected SchemaObject |
createByIDImpl(DBObjectID id)
|
DBObjectID |
createID(Schema schema,
java.lang.String name,
java.lang.String type,
java.lang.Object id)
|
boolean |
exists(java.lang.String type,
java.lang.String schema,
java.lang.String name)
Checks whether an object exists in the database. |
protected java.lang.String |
getAliveTestStatement()
Returns a statement that, if executed succesfully, tests whether the given connections is live. |
protected abstract DictionaryQueries |
getDictionaryQueries()
|
java.lang.Long |
getExternalTimestamp(SchemaObject object)
Retrieves the timestamp for this object from the database. |
protected java.lang.Long |
getExternalTimestampByID(DBObjectID id)
|
protected java.lang.Long |
getExternalTimestampByName(java.lang.String type,
Schema schema,
java.lang.String objectName)
|
protected QueryWrapper[] |
getListQueries(java.lang.String[] types,
Schema schema,
java.lang.String ref)
Retruns a number of query wrapper objects that will list the given object types in the given schema. |
protected java.util.List |
getParameters(DictionaryQueries.Params[] params,
Schema schema,
java.lang.String nameref,
java.lang.String[] typeList)
|
protected java.util.List |
getParameters(DictionaryQueries.Params[] params,
java.lang.String schema,
java.lang.String nameref,
java.lang.String[] typeList)
|
protected boolean |
isConnectionAlive(java.sql.Connection conn)
Implementation that checks whether the given (current) connection is alive. |
protected boolean |
isSupportedType(java.lang.String type)
|
protected java.util.Collection<SchemaObject> |
listObjectsImpl(java.lang.String[] objectTypes,
Schema schema,
java.lang.String ref)
Internal listObjects implementation. |
protected java.util.Map<java.lang.String,Schema> |
loadSchemasImpl()
Implementation that should be implemented to load schemas from the database. |
protected QueryWrapper |
newQueryWrapper(java.lang.String query,
java.util.List params)
|
protected QueryWrapper |
newQueryWrapper(java.lang.String query,
java.lang.Object... params)
|
void |
resumeTimestampQueries(java.lang.String key)
Resums the calls to get the external timestamp for a given object. |
boolean |
supportsTimestamps()
Returns true if this database supports timestamping. |
void |
suspendTimestampQueries(java.lang.String key)
Limits the call to get the external timestamp for a given object to once until resumeTimestampQueries() is called. |
| Methods inherited from class oracle.javatools.db.ddl.DDLDatabase |
|---|
cacheSchema, cacheSchema, canCreate, canCreate, canDelete, canDelete, close, createObjects, createSchema, deleteObject, deleteObjects, deleteSchema, executeDDL, getCachedSchema, getDDLGenerator, getDiffEngine, getSchema, isCauseNameInUse, listSchemas, loadAllSchemas, processCreateException, processDeleteException, registerExpanders, throwUnsupportedOperation, throwUnsupportedOperation, uncacheSchema, undeleteObject, undeleteObjects, updateObject, updateObjects, updateObjects, updateSchema |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.javatools.db.Database |
|---|
getDatabaseType, getIdentifierQuoteString, getUserName |
| Constructor Detail |
|---|
protected DictionaryDatabase(java.lang.String connStore,
java.lang.String connName,
java.sql.Connection conn)
| Method Detail |
|---|
protected final QueryWrapper newQueryWrapper(java.lang.String query,
java.lang.Object... params)
protected QueryWrapper newQueryWrapper(java.lang.String query,
java.util.List params)
protected abstract DictionaryQueries getDictionaryQueries()
protected boolean isSupportedType(java.lang.String type)
public boolean supportsTimestamps()
supportsTimestamps in class AbstractDBObjectProviderAbstractDBObjectProvider.TIMESTAMP_PROPERTYpublic void suspendTimestampQueries(java.lang.String key)
public void resumeTimestampQueries(java.lang.String key)
protected QueryWrapper[] getListQueries(java.lang.String[] types,
Schema schema,
java.lang.String ref)
Ideally this method would only return one query wrapper as that will most probably be more efficient in getting the data. However where a Database implementation is unable to UNION the list queries together it can return multiple wrappers.
public final DBObjectID createID(Schema schema,
java.lang.String name,
java.lang.String type,
java.lang.Object id)
protected final java.util.Collection<SchemaObject> listObjectsImpl(java.lang.String[] objectTypes,
Schema schema,
java.lang.String ref)
throws DBException
AbstractDBObjectProvider
listObjectsImpl in class AbstractDBObjectProviderDBException
protected final java.util.List getParameters(DictionaryQueries.Params[] params,
Schema schema,
java.lang.String nameref,
java.lang.String[] typeList)
protected final java.util.List getParameters(DictionaryQueries.Params[] params,
java.lang.String schema,
java.lang.String nameref,
java.lang.String[] typeList)
public final java.lang.Long getExternalTimestamp(SchemaObject object)
throws DBException
getExternalTimestamp in class AbstractDBObjectProviderDBException
protected final java.lang.Long getExternalTimestampByID(DBObjectID id)
throws DBException
DBException
protected final java.lang.Long getExternalTimestampByName(java.lang.String type,
Schema schema,
java.lang.String objectName)
protected java.util.Map<java.lang.String,Schema> loadSchemasImpl()
throws DBException
DDLDatabase
loadSchemasImpl in class DDLDatabaseDBException
public final boolean exists(java.lang.String type,
java.lang.String schema,
java.lang.String name)
exists in interface Databaseexists in class AbstractDatabasename - The name of the schema object.
true if the object exists, false
otherwise.
protected final SchemaObject createByIDImpl(DBObjectID id)
throws DBException
createByIDImpl in class AbstractDatabaseDBExceptionprotected final java.lang.String getAliveTestStatement()
AbstractDatabaseStatement.execute(java.lang.String) to be a valid test (e.g. SELECT 1 FROM DUAL for
Oracle).
getAliveTestStatement in class AbstractDatabaseprotected boolean isConnectionAlive(java.sql.Connection conn)
AbstractDatabaseAbstractDatabase.getConnection() or similar, and
only check the passed Connection object.
isConnectionAlive in class AbstractDatabaseconn - the connection to check (will not be null).
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||