| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07  | 
|||||||||
| 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, NEW_FROM_TEMPLATE_TYPE, 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 | ||
|---|---|---|
 void | 
close()
Closes the Database Connection (and the supplied JDBC Connection).  | 
|
protected  SystemObject | 
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()
 | 
|
protected  java.lang.Long | 
getExternalTimestampByID(DBObjectID id)
 | 
|
protected  java.lang.Long | 
getExternalTimestampByName(java.lang.String type,
                           Schema schema,
                           java.lang.String objectName)
 | 
|
protected  java.lang.Long | 
getExternalTimestampImpl(SystemObject obj)
Retrieves the timestamp for this object from the database.  | 
|
protected  QueryWrapper[] | 
getListQueries(DBObjectCriteria<? extends SystemObject> criteria)
Retruns a number of query wrapper objects that will list the given object types in the given schema.  | 
|
protected  java.util.List<java.lang.String> | 
getParameters(DictionaryQueries.Params[] params,
              Schema schema,
              java.lang.String nameref,
              java.lang.String[] typeList)
 | 
|
protected  java.util.List<java.lang.String> | 
getParameters(DictionaryQueries.Params[] params,
              java.lang.String schema,
              java.lang.String nameref,
              java.lang.String[] typeList)
 | 
|
 java.lang.String | 
getUserName()
Retrieves the username used to connect to the database  | 
|
 boolean | 
isObjectValid(java.lang.String objectType,
              java.lang.String schema,
              java.lang.String objectName)
Determines whether the specified database object is in a valid state.  | 
|
protected  boolean | 
isSupportedType(java.lang.String type)
 | 
|
protected 
 | 
listObjectsImpl(DBObjectCriteria<T> criteria)
Internal listObjects implementation.  | 
|
protected  java.util.Map<java.lang.String,Schema> | 
loadSchemasImpl()
 | 
|
protected  QueryWrapper | 
newQueryWrapper(java.lang.String query,
                java.util.List params)
 | 
|
protected  QueryWrapper | 
newQueryWrapper(java.lang.String query,
                java.lang.Object... params)
 | 
|
 boolean | 
supportsTimestamps(java.lang.String objectType)
Returns true if this database supports timestamping.  | 
|
| Methods inherited from class oracle.javatools.db.ddl.DDLDatabase | 
|---|
canCreate, canDelete, createObjects, createSchema, deleteObjects, deleteSchema, executeDDL, getDDLGenerator, getDiffEngine, isCauseNameInUse, listObjectsImpl, listSchemas, processCreateException, processDeleteException, registerExpanders, setCompilerOptions, undeleteObject, undeleteObjects, 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 | 
|---|
getIdentifierQuoteString | 
| 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(java.lang.String objectType)
supportsTimestamps in class AbstractDBObjectProviderprotected QueryWrapper[] getListQueries(DBObjectCriteria<? extends SystemObject> criteria)
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 <T extends SystemObject> java.util.Collection<T> listObjectsImpl(DBObjectCriteria<T> criteria)
                                                                throws DBException
AbstractDBObjectProvider
listObjectsImpl in class AbstractDBObjectProviderDBException
protected final java.util.List<java.lang.String> getParameters(DictionaryQueries.Params[] params,
                                                               Schema schema,
                                                               java.lang.String nameref,
                                                               java.lang.String[] typeList)
protected final java.util.List<java.lang.String> getParameters(DictionaryQueries.Params[] params,
                                                               java.lang.String schema,
                                                               java.lang.String nameref,
                                                               java.lang.String[] typeList)
protected final java.lang.Long getExternalTimestampImpl(SystemObject obj)
                                                 throws DBException
getExternalTimestampImpl 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
DBException
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.
public final boolean isObjectValid(java.lang.String objectType,
                                   java.lang.String schema,
                                   java.lang.String objectName)
Database
isObjectValid in interface DatabaseisObjectValid in class AbstractDatabaseobjectType - the type of the object.schema - the name of the schema containing the objectobjectName - the name of the object
protected final SystemObject 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 AbstractDatabasepublic void close()
Database
close in interface Databaseclose in class AbstractDatabasepublic final java.lang.String getUserName()
Database
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||