Skip navigation links 
 
oracle.ide.db.model
Class BaseDBObjectNode
java.lang.Object
  
oracle.ide.model.Node
      
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 
 
 
  
 
  
 
| 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 | 
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, 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, writeUnlock | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
 
 
 
 
 
BaseDBObjectNode
public BaseDBObjectNode()
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. 
 
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.