|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DBObjectBuilder
interface provides a mechanism for constructing new instances representing database objects. A given DBObjectBuilder is associated with a specific type of object - tables, for example.
A DBObjectProvider
can use a DBObjectBuilder to construct data model instances without needing to know how the data model is being determined. For example, a generic JDBC implementation of DBObjectBuilder for tables could use the information from DatabaseMetaData to create the model; an Oracle specific DBObjectBuilder could query the data dictionary directly; and an offline DBObjectBuilder could convert an XML file into the table data model.
DBObjectProvider
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. |
java.lang.String |
getObjectType() Retrieves the type of object that this DBObjectBuilder instance creates. |
java.lang.Long |
getTimestamp(Schema schema, java.lang.String name) Retrieves the the timestamp for this object. |
java.lang.String[] |
listObjects(Schema schema, java.lang.String ref) Lists the names of the objects that can be provided by this builder. |
Method Detail |
public java.lang.String getObjectType()
DBObject.getType()
public java.lang.String[] listObjects(Schema schema, java.lang.String ref) throws DBException
schema
- the schema to look for objects inref
- a string containing a pattern that can used to match names; a ref of null
indicates that all objects should be returnedDBException
- if an error is encountered getting the listpublic SchemaObject buildObject(Schema schema, java.lang.String name) throws DBException
schema
- the schema containing the objectname
- a string specifying the name of the new objectnull
if no such object can be builtDBException
- if an error is encountered creating the objectpublic SchemaObject buildObject(DBObjectID id) throws DBException
id
- the ID associated with the new instancenull
if no such object can be builtDBException
- if an error is encountered creating the objectpublic java.lang.Long getTimestamp(Schema schema, java.lang.String name) throws DBException
null
should be returned.schema
- The Schema
containing the objectname
- The name of the objectnull
if this implementation does not support timestampsDBException
- if an error is encountered retrieving the timestamp
|
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.