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

E17493-01

oracle.ide.db.model
Class BaseDBObjectNode

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.ide.db.model.BaseDBObjectNode
All Implemented Interfaces:
DBObjectNode, DBObjectProviderNode, DBObjectTypeNode, Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable
Direct Known Subclasses:
oracle.jdevimpl.offlinedb.browser.BaseOfflineDBObjectNode

public abstract class BaseDBObjectNode
extends Node
implements DBObjectNode

Convenience subclass of Node that implements DBObjectNode. Client code should not register against, or rely on this class. Where possible use the interface.

See Also:
DBObjectNode, BaseDBTextNode, BasePlSqlTextNode

Field Summary
 
Fields inherited from class oracle.ide.model.Node
LOG_READONLY
 
Constructor Summary
BaseDBObjectNode()
           
 
Method Summary
 DBObject getDBObject()
          Returns the DBObject for the node.
 javax.swing.Icon getIcon()
          Default implementation of this Displayable method returns the appropriate icon for the object's type.
 DBObjectProvider getProvider()
          Gets the provider from the DBObjectProviderFactory using the key returned by getProviderIdentifier().
 java.lang.String getProviderType()
          By default this returns "db".
 java.lang.String getShortLabel()
          Default implementation of this Displayable method returns the object name.
 void init(DBObject obj, DBObjectProvider pro)
          Initialises a new node.
 
Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, closeImpl, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getInputStream, getLongLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isMigrating, isNew, isOpen, isReadLocked, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, markDirty, markDirtyImpl, mayHaveChildren, nodeLock, notifyObservers, open, openImpl, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, saveImpl, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.db.model.DBObjectNode
getObjectName
 
Methods inherited from interface oracle.ide.db.model.DBObjectTypeNode
getObjectType, getProviderIdentifier, getSchemaName
 
Methods inherited from interface oracle.ide.model.Locatable
getURL, setURL
 
Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, getData, mayHaveChildren
 
Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText, toString
 

Constructor Detail

BaseDBObjectNode

public BaseDBObjectNode()
Method Detail

getProviderType

public java.lang.String getProviderType()
By default this returns "db". Override if needed.

Specified by:
getProviderType in interface DBObjectProviderNode

getDBObject

public DBObject getDBObject()
Returns the DBObject for the node. This abstract implementation gets the node from the provider and will therefore hit the database. If possible override in a subclass.

Specified by:
getDBObject in interface DBObjectNode

getProvider

public DBObjectProvider getProvider()
Gets the provider from the DBObjectProviderFactory using the key returned by getProviderIdentifier().

Specified by:
getProvider in interface DBObjectNode
See Also:
DBObjectTypeNode.getProviderIdentifier()

init

public void init(DBObject obj,
                 DBObjectProvider pro)
Description copied from interface: DBObjectNode
Initialises a new node. This is used by the create object dialogs when a new object is created that shouldn't be immediately saved - e.g. PL/SQL or XML Schema. The node is initialised and then opened in an editor, the save of the editor will be the first commit of the object to the backend.

Specified by:
init in interface DBObjectNode

getIcon

public javax.swing.Icon getIcon()
Default implementation of this Displayable method returns the appropriate icon for the object's type.

Specified by:
getIcon in interface Displayable
Overrides:
getIcon in class Node
Returns:
the Icon to be displayed for the Displayable.

getShortLabel

public java.lang.String getShortLabel()
Default implementation of this Displayable method returns the object name.

Specified by:
getShortLabel in interface Displayable
Overrides:
getShortLabel in class Node
Returns:
a short descriptive label of the Displayable that can be shown to the user.

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

E17493-01

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