Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.db
Class DBObjectProviderFactory.Creator

java.lang.Object
  extended by oracle.javatools.db.DBObjectProviderFactory.Creator
Direct Known Subclasses:
DatabaseFactory
Enclosing class:
DBObjectProviderFactory

public abstract static class DBObjectProviderFactory.Creator
extends java.lang.Object

Factory creator class used to create provider instances when there isn't one already in the cache.


Constructor Summary
DBObjectProviderFactory.Creator()
           
 
Method Summary
protected abstract  DBObjectProvider createProviderImpl(java.lang.Object identifier)
          If this factory can, it creates a provider implementation from the given identifier.
protected  DBObjectProvider findProvider(java.lang.Object identifier)
           
protected  void fireProviderDeleted(java.lang.Object identifier, DBObjectProvider pro)
           
protected  java.lang.String getDescription(java.lang.Object identifier)
          Gets a displayable string to represent the database with the given identifier.
protected abstract  java.lang.Object getIdentifier(DBObjectProvider provider)
          Returns an identifier for the given provider that is used when notifying listeners of provider events.
abstract  java.lang.String getProviderType()
          This method must return a String unique to the Creator that identifies the type of DBObjectProvider that will be created.
protected  DBObjectProvider uncacheProvider(java.lang.Object identifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBObjectProviderFactory.Creator

public DBObjectProviderFactory.Creator()
Method Detail

getProviderType

public abstract java.lang.String getProviderType()
This method must return a String unique to the Creator that identifies the type of DBObjectProvider that will be created. The same String should be returned by getProviderType() on any DBObjectProvider created by this provider.


createProviderImpl

protected abstract DBObjectProvider createProviderImpl(java.lang.Object identifier)
                                                throws DBException
If this factory can, it creates a provider implementation from the given identifier. If the identifier isn't appropriate to this factory null is returned. If the identifier is appropriate, but an error is encountered a DBException is thrown.

Throws:
DBException

getDescription

protected java.lang.String getDescription(java.lang.Object identifier)
Gets a displayable string to represent the database with the given identifier. The string can contain a description of the type as well, for example "database hr" or "offline database DATABASE1"


getIdentifier

protected abstract java.lang.Object getIdentifier(DBObjectProvider provider)
Returns an identifier for the given provider that is used when notifying listeners of provider events. This is also the expected identifier used in findProvider(java.lang.Object) etc.

Returns:
null if the provider isn't associated with this Creator implementation.

uncacheProvider

protected DBObjectProvider uncacheProvider(java.lang.Object identifier)

findProvider

protected DBObjectProvider findProvider(java.lang.Object identifier)

fireProviderDeleted

protected final void fireProviderDeleted(java.lang.Object identifier,
                                         DBObjectProvider pro)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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