|
Extension SDK 9.0.5 | ||||||||||
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
oracle.jdeveloper.cm.ds.db.JdbcDatabase
Implementation of the Database
interface for JDBC Databases.
The JdbcDatabase
class provides support for generic JDBC
databases; it can be subclasses to provide support for specific vendors and/or
versions.
Field Summary | |
static DataType |
ANSI_CHARACTER
|
static DataType |
ANSI_CHARACTER_VARYING
|
static DataType |
ANSI_DATE
|
static DataType |
ANSI_DECIMAL
|
static DataType |
ANSI_DOUBLE_PRECISION
|
static DataType |
ANSI_FLOAT
|
static DataType |
ANSI_INT
|
static DataType |
ANSI_INTEGER
|
static DataType |
ANSI_NUMERIC
|
static DataType |
ANSI_REAL
|
static DataType |
ANSI_SMALLINT
|
static DataType |
ANSI_TIME
|
static java.lang.String |
ODBC_NOT_IMPLEMENTED
|
Fields inherited from class oracle.jdeveloper.cm.ds.db.AbstractDatabase |
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 | |
JdbcDatabase(java.sql.Connection conn)
|
|
JdbcDatabase(java.lang.String connName,
java.sql.Connection conn)
Constructs a new JdbcDatabase. |
Method Summary | |
boolean |
canCreate(Schema schema,
boolean replace)
Whether an attempt to create the specified schema is likely to succeed. |
boolean |
canCreate(SchemaObject object,
boolean replace)
Whether an attempt to create the specified object is likely to succeed. |
boolean |
canDelete(Schema schema,
boolean cascade)
Checks to see whether a specific schema can be deleted. |
boolean |
canDelete(SchemaObject object,
boolean cascade)
Checks to see whether a specific object can be deleted. |
void |
createObject(SchemaObject object,
boolean replace)
Causes the creation of the object described by the specified meta data. |
void |
createSchema(Schema schema,
boolean replace)
Causes the creation of a new Schema in the persistent storage. |
void |
deleteObject(SchemaObject object,
boolean cascade)
Deletes the object. |
void |
deleteSchema(Schema schema,
boolean cascade)
Deletes the schema. |
protected int |
getCasePolicy()
Retrieves the case policy in effect for this Database. |
java.lang.String |
getDatabaseType()
Gets the type of database. |
java.lang.String |
getIdentifierQuoteString()
Returns the String to use to quote SQL identifiers with |
Schema |
getSchema(java.lang.String name)
Retrieves the Schema object associated with a specific name. |
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 |
getUniqueName(java.lang.String type,
Schema schema,
java.lang.String base)
Retrieves a unique name for an object of a specific type. |
java.lang.String |
getUserName()
Retrieves the username used to connect to the database |
boolean |
hasPriviledge(java.lang.String type,
Schema schema,
java.lang.String priv)
Checks to see whether the user has the requisite permissions to perform the specified operation. |
Schema[] |
listSchemas()
Retrieves the list of schemas available from this provider. |
protected void |
registerBuilders()
Called to request that the DBOBjectBuilders be registered. |
protected void |
registerDataTypes()
Called to request that the datatypes be registered. |
boolean |
supportsDebugging()
Whether this database instance supports JDWP debugging. |
void |
updateObject(SchemaObject oldObject,
SchemaObject newObject)
Updates the definition of an object. |
void |
updateSchema(Schema oldSchema,
Schema newSchema)
Updates the definition of a Schema. |
void |
validateObject(SchemaObject object)
Checks to see if the object is valid. |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDatabase |
close, createObjects, createSchema, deleteObjects, exists, exists, getConnection, getConnectionName, getDatabaseSource, getDDLGenerator, isObjectValid, setDDLGenerator, update, updateObjects |
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.DBObjectProvider |
getDataType, getExternalName, getExternalName, getInternalName, getInternalName, getObject, isValidName, listObjects, listObjects, listObjectTypes, listSupportedDataTypes, quoteIdentifier, validateObject |
Field Detail |
public static final java.lang.String ODBC_NOT_IMPLEMENTED
public static final DataType ANSI_CHARACTER
public static final DataType ANSI_CHARACTER_VARYING
public static final DataType ANSI_NUMERIC
public static final DataType ANSI_DECIMAL
public static final DataType ANSI_INTEGER
public static final DataType ANSI_INT
public static final DataType ANSI_SMALLINT
public static final DataType ANSI_FLOAT
public static final DataType ANSI_DOUBLE_PRECISION
public static final DataType ANSI_REAL
public static final DataType ANSI_DATE
public static final DataType ANSI_TIME
Constructor Detail |
public JdbcDatabase(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 JdbcDatabasepublic JdbcDatabase(java.sql.Connection conn)
Method Detail |
protected int getCasePolicy()
AbstractDBObjectProvider
getCasePolicy
in class AbstractDBObjectProvider
AbstractDBObjectProvider.LOWER_CASE_NAME_POLICY
,
AbstractDBObjectProvider.MIXED_CASE_NAME_POLICY
,
AbstractDBObjectProvider.UPPER_CASE_NAME_POLICY
protected void registerBuilders()
AbstractDatabase
registerBuilders
in class AbstractDatabase
protected void registerDataTypes()
AbstractDatabase
registerDataTypes
in class AbstractDatabase
public java.lang.String getDatabaseType()
Database
DatabaseMetaData.getDatabaseProductName()
public long getTimestamp(java.lang.String schema, java.lang.String type, java.lang.String objectName)
Database
public boolean supportsDebugging()
Database
false
.
true
if JDWP debugging is supported against this
database, false
otherwisepublic java.lang.String getUserName() throws DBException
Database
DBException
public boolean hasPriviledge(java.lang.String type, Schema schema, java.lang.String priv)
DBObjectProvider
hasPriviledge
in interface DBObjectProvider
hasPriviledge
in class AbstractDBObjectProvider
type
- the object type on which the operation is being performed.schema
- the schema to check. A value of null
checks for the
current schema.priv
- a pre-defined operation.
public java.lang.String getIdentifierQuoteString()
Database
String
to use to quote SQL identifiers with
getIdentifierQuoteString
in interface Database
getIdentifierQuoteString
in class AbstractDBObjectProvider
public boolean canCreate(SchemaObject object, boolean replace)
DBObjectProvider
canCreate
in interface DBObjectProvider
canCreate
in class AbstractDBObjectProvider
public boolean canDelete(SchemaObject object, boolean cascade)
DBObjectProvider
canDelete
in interface DBObjectProvider
canDelete
in class AbstractDBObjectProvider
public void createObject(SchemaObject object, boolean replace) throws DBException
DBObjectProvider
createObject
in interface DBObjectProvider
createObject
in class AbstractDBObjectProvider
DBException
public void deleteObject(SchemaObject object, boolean cascade) throws DBException
DBObjectProvider
deleteObject
in interface DBObjectProvider
deleteObject
in class AbstractDBObjectProvider
DBException
public void validateObject(SchemaObject object) throws ValidationException
DBObjectProvider
validateObject
in interface DBObjectProvider
validateObject
in class AbstractDBObjectProvider
ValidationException
public void updateObject(SchemaObject oldObject, SchemaObject newObject) throws DBException
DBObjectProvider
updateObject
in interface DBObjectProvider
updateObject
in class AbstractDBObjectProvider
DBException
public Schema getSchema(java.lang.String name) throws DBException
DBObjectProvider
getSchema
in interface DBObjectProvider
getSchema
in class AbstractDBObjectProvider
DBException
public java.lang.String getUniqueName(java.lang.String type, Schema schema, java.lang.String base)
DBObjectProvider
getUniqueName
in interface DBObjectProvider
getUniqueName
in class AbstractDBObjectProvider
public Schema[] listSchemas() throws DBException
DBObjectProvider
listSchemas
in interface DBObjectProvider
listSchemas
in class AbstractDBObjectProvider
DBException
public boolean canCreate(Schema schema, boolean replace)
DBObjectProvider
canCreate
in interface DBObjectProvider
canCreate
in class AbstractDBObjectProvider
public void createSchema(Schema schema, boolean replace) throws DBException
DBObjectProvider
createSchema
in interface DBObjectProvider
createSchema
in class AbstractDBObjectProvider
DBException
public boolean canDelete(Schema schema, boolean cascade)
DBObjectProvider
canDelete
in interface DBObjectProvider
canDelete
in class AbstractDBObjectProvider
public void deleteSchema(Schema schema, boolean cascade) throws DBException
DBObjectProvider
deleteSchema
in interface DBObjectProvider
deleteSchema
in class AbstractDBObjectProvider
DBException
public void updateSchema(Schema oldSchema, Schema newSchema) throws DBException
DBObjectProvider
updateSchema
in interface DBObjectProvider
updateSchema
in class AbstractDBObjectProvider
DBException
|
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.