Extension SDK 9.0.5

oracle.jdeveloper.cm.ds.db
Class DMDBuilder

java.lang.Object
  extended byoracle.jdeveloper.cm.ds.db.AbstractDBObjectBuilder
      extended byoracle.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)
           
 
Method Summary
 SchemaObject buildObject(DBObjectID id)
          Builds a new SchemaObject instance, using the specified ID.
 SchemaObject buildObject(Schema schema, java.lang.String name)
          Builds a new SchemaObject instance.
protected abstract  SchemaObject buildObjectImpl(Schema schema, java.lang.String name)
           
protected  void fillInObject(SchemaObject object)
           
 java.lang.String getCatalog()
           
 java.sql.Connection getConnection()
           
 JdbcDatabase getDatabase()
           
 boolean isUseSchema()
           
 java.lang.String[] listObjects(Schema schema, java.lang.String ref)
          Lists the names of the objects that can be provided by this builder.
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObjectBuilder
getObjectType, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMDBuilder

protected DMDBuilder(JdbcDatabase db,
                     java.lang.String catalog,
                     java.lang.String type,
                     boolean useSchema)
Method Detail

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

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.