|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider
oracle.jdeveloper.cm.ds.db.AbstractDatabase
Base implementation of the Database interface.
AbstractDatabase can be subclassed to provide support for specific
types of databases.
JdbcDatabase,
BaseOracleDatabase| Field Summary | |
static java.lang.String |
SQLSTATE_NOT_IMPLEMENTED
|
| Fields inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider |
EMPTY_LIST, LOWER_CASE_NAME_POLICY, MIXED_CASE_NAME_POLICY, TIMESTAMP_PROPERTY, UPPER_CASE_NAME_POLICY |
| Fields inherited from interface oracle.jdeveloper.cm.ds.db.Database |
GENERIC_JDBC_DATABASE |
| Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObjectProvider |
CREATE_PRIVILEDGE, DELETE_PRIVILEDGE, MODIFY_PRIVILEDGE |
| Constructor Summary | |
protected |
AbstractDatabase(java.lang.String connName,
java.sql.Connection conn)
Constructs a new AbstractDatabase. |
| Method Summary | |
void |
close()
Closes the Database Connection (and the supplied JDBC Connection). |
void |
createObjects(SchemaObject[] objects,
boolean replace)
Default implementation of this method simply iterates through the objects calling createObject on each. |
protected Schema |
createSchema(java.lang.String name)
|
void |
deleteObjects(SchemaObject[] objects,
boolean cascade)
Default implementation of this method simply iterates through the objects calling createObject on each. |
protected boolean |
exists(SchemaObject obj)
Whether the specified object exists. |
boolean |
exists(java.lang.String type,
java.lang.String schema,
java.lang.String name)
Checks for existance of a schema object named objectName. |
java.sql.Connection |
getConnection()
Gets the JDBC connection associated with this database. |
java.lang.String |
getConnectionName()
Retrieves the ConnectionManager name for the Connection associated with this Database. |
java.lang.String |
getDatabaseSource(java.lang.String objectType,
Schema schema,
java.lang.String objectName)
Retrieves the source for an object in the database. |
protected DDLGenerator |
getDDLGenerator()
Retrieves the DDLGenerator used by default. |
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 abstract void |
registerBuilders()
Called to request that the DBOBjectBuilders be registered. |
protected abstract void |
registerDataTypes()
Called to request that the datatypes be registered. |
protected void |
setDDLGenerator(DDLGenerator gen)
Sets the DDLGenerator used by default. |
void |
update(java.lang.Object observed,
UpdateMessage msg)
Notification message. |
void |
updateObjects(SchemaObject[] oldObjects,
SchemaObject[] newObjects)
Default implementation of this method simply iterates through the objects calling createObject on each. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.jdeveloper.cm.ds.db.Database |
getDatabaseType, getIdentifierQuoteString, getTimestamp, getUserName, supportsDebugging |
| Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObjectProvider |
canCreate, canCreate, canDelete, canDelete, createObject, createSchema, deleteObject, deleteSchema, getDataType, getExternalName, getExternalName, getInternalName, getInternalName, getObject, getSchema, getUniqueName, hasPriviledge, isValidName, listObjects, listObjects, listObjectTypes, listSchemas, listSupportedDataTypes, quoteIdentifier, updateObject, updateSchema, validateObject, validateObject |
| Field Detail |
public static final java.lang.String SQLSTATE_NOT_IMPLEMENTED
| Constructor Detail |
protected AbstractDatabase(java.lang.String connName,
java.sql.Connection conn)
connName - a String containing the ConnectionManager name for the
connection associated with this Databaseconn - the Connection used by this AbstractDatabase| Method Detail |
protected void setDDLGenerator(DDLGenerator gen)
gen - The DDLGenerator to use for generating DDLprotected DDLGenerator getDDLGenerator()
protected boolean exists(SchemaObject obj)
obj - The object being checked
protected abstract void registerBuilders()
protected abstract void registerDataTypes()
public java.sql.Connection getConnection()
Database
getConnection in interface Databasepublic java.lang.String getConnectionName()
Database
getConnectionName in interface Databasepublic void close()
Database
close in interface Database
public boolean exists(java.lang.String type,
java.lang.String schema,
java.lang.String name)
DatabaseobjectName.
exists in interface Databasename - The name of the schema object.
true if the object exists, false
otherwise.
public boolean isObjectValid(java.lang.String objectType,
java.lang.String schema,
java.lang.String objectName)
Database
isObjectValid in interface Databaseschema - the name of the schema containing the objectobjectName - the name of the objectobjectType - the type of the object.protected final Schema createSchema(java.lang.String name)
public void update(java.lang.Object observed,
UpdateMessage msg)
Observer
update in interface Observerobserved - the subject whose state has changed.msg - what has changed.
public void createObjects(SchemaObject[] objects,
boolean replace)
throws DBException
createObjects in interface DBObjectProvidercreateObjects in class AbstractDBObjectProviderDBException
public void deleteObjects(SchemaObject[] objects,
boolean cascade)
throws DBException
deleteObjects in interface DBObjectProviderdeleteObjects in class AbstractDBObjectProviderDBException
public void updateObjects(SchemaObject[] oldObjects,
SchemaObject[] newObjects)
throws DBException
updateObjects in interface DBObjectProviderupdateObjects in class AbstractDBObjectProviderDBException
public java.lang.String getDatabaseSource(java.lang.String objectType,
Schema schema,
java.lang.String objectName)
throws DBException
Databasenull.
getDatabaseSource in interface DatabaseobjectType - The type of object for which the source is neededschema - The Schema containing the objectobjectName - The name of the object
DBException - if an error occurs fetching the source
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.