Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.db.dictionary
Class DictionaryDBObjectBuilder<T extends AbstractBuildableObject>

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObjectBuilder<T>
      extended by oracle.javatools.db.dictionary.DictionaryDBObjectBuilder<T>
All Implemented Interfaces:
DBObjectBuilder<T>

public abstract class DictionaryDBObjectBuilder<T extends AbstractBuildableObject>
extends AbstractDBObjectBuilder<T>

Extension of AbstractDBObjectBuilder that includes some database specific support such as connections and query wrappers.

Since:
11.0

Field Summary
 
Fields inherited from interface oracle.javatools.db.DBObjectBuilder
BASE_COMPONENT_KEY
 
Constructor Summary
protected DictionaryDBObjectBuilder(DictionaryDatabase db, java.lang.String type)
           
 
Method Summary
 void buildObject(T object)
          Requests that the specified object be completed.
 void buildObjectComponent(T object, java.lang.String key)
          Uses canBuildComponents() to work out whether this builder can build just the given (key) subcomponent.
protected abstract  void fillInObject(T object)
          Called to fill in the object definition.
protected  java.sql.Connection getConnection()
           
protected  DictionaryDatabase getDatabase()
           
protected  QueryWrapper newQueryWrapper(java.lang.String query, java.lang.Object... params)
           
 
Methods inherited from class oracle.javatools.db.AbstractDBObjectBuilder
canBuildComponents, createObject, ensureComponent, fillInObjectComponent, getObjectType, getProvider, getSchema, markAsBuilt, needsBuilding, needsBuilding, registerObject, updateTimestamp, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryDBObjectBuilder

protected DictionaryDBObjectBuilder(DictionaryDatabase db,
                                    java.lang.String type)
Method Detail

getDatabase

protected DictionaryDatabase getDatabase()

getConnection

protected final java.sql.Connection getConnection()

newQueryWrapper

protected QueryWrapper newQueryWrapper(java.lang.String query,
                                       java.lang.Object... params)

buildObject

public final void buildObject(T object)
                       throws DBException
Description copied from interface: DBObjectBuilder
Requests that the specified object be completed. The object should be completely initialized after the call completes.

Specified by:
buildObject in interface DBObjectBuilder<T extends AbstractBuildableObject>
Overrides:
buildObject in class AbstractDBObjectBuilder<T extends AbstractBuildableObject>
Parameters:
object - The object needing building
Throws:
DBException - if an error occurs trying to build the object

buildObjectComponent

public final void buildObjectComponent(T object,
                                       java.lang.String key)
                                throws DBException
Description copied from class: AbstractDBObjectBuilder
Uses canBuildComponents() to work out whether this builder can build just the given (key) subcomponent. If it can't the whole object is built.

Specified by:
buildObjectComponent in interface DBObjectBuilder<T extends AbstractBuildableObject>
Overrides:
buildObjectComponent in class AbstractDBObjectBuilder<T extends AbstractBuildableObject>
Throws:
DBException

fillInObject

protected abstract void fillInObject(T object)
                              throws DBException
Called to fill in the object definition. Note that this method will always be called within a block synchronized on the Connection - thus, additional synchronization is not required by implementors.

Specified by:
fillInObject in class AbstractDBObjectBuilder<T extends AbstractBuildableObject>
Parameters:
object - The object to fill in
Throws:
DBException - thrown if an error occurs

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

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