|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a interface for accessing a Database.
Field Summary | |
static java.lang.String |
GENERIC_JDBC_DATABASE
Type for a generic JDBC database. |
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObjectProvider |
CREATE_PRIVILEDGE, DELETE_PRIVILEDGE, MODIFY_PRIVILEDGE |
Method Summary | |
void |
close()
Closes the Database Connection (and the supplied JDBC Connection). |
boolean |
exists(java.lang.String type,
java.lang.String schema,
java.lang.String objectName)
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. |
java.lang.String |
getDatabaseType()
Gets the type of database. |
java.lang.String |
getIdentifierQuoteString()
Returns the String to use to quote SQL identifiers with |
long |
getTimestamp(java.lang.String schema,
java.lang.String type,
java.lang.String objectName)
Gets the timestamp of a PL/SQL Subprogram |
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. |
boolean |
supportsDebugging()
Whether this database instance supports JDWP debugging. |
Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObjectProvider |
canCreate, canCreate, canDelete, canDelete, createObject, createObjects, createSchema, deleteObject, deleteObjects, deleteSchema, getDataType, getExternalName, getExternalName, getInternalName, getInternalName, getObject, getSchema, getUniqueName, hasPriviledge, isValidName, listObjects, listObjects, listObjectTypes, listSchemas, listSupportedDataTypes, quoteIdentifier, updateObject, updateObjects, updateSchema, validateObject, validateObject |
Field Detail |
public static final java.lang.String GENERIC_JDBC_DATABASE
getDatabaseType()
,
Constant Field ValuesMethod Detail |
public java.sql.Connection getConnection()
public java.lang.String getConnectionName()
public void close()
public java.lang.String getUserName() throws DBException
DBException
public java.lang.String getDatabaseType()
DatabaseMetaData.getDatabaseProductName()
public boolean exists(java.lang.String type, java.lang.String schema, java.lang.String objectName)
objectName
.
objectName
- The name of the schema object.
true
if the object exists, false
otherwise.public java.lang.String getIdentifierQuoteString()
String
to use to quote SQL identifiers with
getIdentifierQuoteString
in interface DBObjectProvider
DatabaseMetaData.getIdentifierQuoteString()
public long getTimestamp(java.lang.String schema, java.lang.String type, java.lang.String objectName)
public boolean isObjectValid(java.lang.String objectType, java.lang.String schema, java.lang.String objectName)
schema
- the name of the schema containing the objectobjectName
- the name of the objectobjectType
- the type of the object.public boolean supportsDebugging()
false
.
true
if JDWP debugging is supported against this
database, false
otherwisepublic java.lang.String getDatabaseSource(java.lang.String objectType, Schema schema, java.lang.String objectName) throws DBException
null
.
objectType
- 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.