oracle.jdeveloper.cm.ds.db
Class DMDBuilder
java.lang.Object
oracle.jdeveloper.cm.ds.db.AbstractDBObjectBuilder
oracle.jdeveloper.cm.ds.db.DMDBuilder
- All Implemented Interfaces:
- DBObjectBuilder
- Direct Known Subclasses:
- JdbcRelationBuilder, JdbcSynonymBuilder
- public abstract class DMDBuilder
- extends AbstractDBObjectBuilder
Builds SchemaObjects based on information retrieved from an instance of DatabaseMetaData
.
- Since:
- 9.0.5
- See Also:
DatabaseMetaData
Constructor Summary |
protected |
DMDBuilder(JdbcDatabase db, java.lang.String catalog, java.lang.String type, boolean useSchema)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DMDBuilder
protected DMDBuilder(JdbcDatabase db,
java.lang.String catalog,
java.lang.String type,
boolean useSchema)
getDatabase
public JdbcDatabase getDatabase()
getConnection
public java.sql.Connection getConnection()
isUseSchema
public boolean isUseSchema()
getCatalog
public java.lang.String getCatalog()
listObjects
public final java.lang.String[] listObjects(Schema schema,
java.lang.String ref)
throws DBException
- Lists the names of the objects that can be provided by this builder.
-
- Specified by:
listObjects
in interface DBObjectBuilder
- Overrides:
listObjects
in class AbstractDBObjectBuilder
-
- Parameters:
schema
- a string containing the schema to look for objects in
ref
- a string containing a pattern that can used to match names; a ref of null
indicates that all objects should be returned
- Returns:
- an array of object names
- Throws:
DBException
- if an error is encountered getting the list
buildObject
public final SchemaObject buildObject(DBObjectID id)
throws DBException
- Description copied from interface:
DBObjectBuilder
- Builds a new SchemaObject instance, using the specified ID.
-
- Specified by:
buildObject
in interface DBObjectBuilder
- Overrides:
buildObject
in class AbstractDBObjectBuilder
-
- Throws:
DBException
buildObject
public final SchemaObject buildObject(Schema schema,
java.lang.String name)
throws DBException
- Description copied from interface:
DBObjectBuilder
- Builds a new SchemaObject instance. A given DBObjectBuilder instance works with a specific type of SchemaObject; all SchemaObject instances created by a DBObjectBuilder will be of the same type.
-
- Specified by:
buildObject
in interface DBObjectBuilder
- Overrides:
buildObject
in class AbstractDBObjectBuilder
-
- Throws:
DBException
buildObjectImpl
protected abstract SchemaObject buildObjectImpl(Schema schema,
java.lang.String name)
throws DBException
-
- Throws:
DBException
fillInObject
protected void fillInObject(SchemaObject object)
throws DBException
-
- Throws:
DBException
Copyright © 1997, 2004, Oracle. All rights reserved.