Skip navigation links

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

E17493-03


oracle.jdeveloper.offlinedb.browser
Class ProviderNode

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.ide.model.DataContainer
          extended by oracle.jdeveloper.offlinedb.browser.ProviderNode

All Implemented Interfaces:
DBObjectProviderNode, Displayable, Element, Folder, LazyLoadable, Locatable, Observer, Subject, Dirtyable, PropertyStorage

public class ProviderNode
extends DataContainer
implements DBObjectProviderNode

Node for a provider in the navigator.


Field Summary
static java.lang.String FILE_EXT
           

 

Fields inherited from class oracle.ide.model.Node
LOG_READONLY

 

Fields inherited from interface oracle.javatools.data.PropertyStorage
DATA_KEY

 

Constructor Summary
ProviderNode()
           

 

Method Summary
protected  void closeImpl()
          Subclasses should override this method to customize the close() behavior.
 Attributes getAttributes()
          This method returns an Attributes object that encodes the attributes of the Element.
 java.lang.Object getData()
          Returns the data object associated with this Element.
 javax.swing.Icon getIcon()
          Displayable interface method.
protected  java.lang.Object getObjectStoreTarget()
           
 java.lang.Object getProviderIdentifier()
          Returns the identifier for the provider - if an online node this will be a String that is the connection name.
 java.lang.String getProviderType()
          Returns the type of provider for this node - e.g.
 ProviderSettings getSettings()
           
 java.lang.String getShortLabel()
          Displayable interface method.
 boolean mayHaveChildren()
          Part of the Element interface.
protected  ObjectStore newObjectStore()
           
 void setSettings(ProviderSettings settings)
           

 

Methods inherited from class oracle.ide.model.DataContainer
add, add, add, canAdd, canRemove, containsChild, equals, equalsImpl, getBaseDirectory, getChildren, getListOfChildren, getProperties, getProperty, getProperty, getSharedPropertiesOnly, getURL, getUserPropertiesOnly, remove, remove, removeAll, removeAll, resetSubDirtyableOwners, revertImpl, saveImpl, setListOfChildren, setProperty, setSubDirtyableOwner, size, update

 

Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getInputStream, getLongLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, isDirty, isLoaded, isMigrating, isNew, isOpen, isReadLocked, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, lockCount, markDirty, markDirtyImpl, nodeLock, notifyObservers, open, openImpl, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlock

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.ide.model.Locatable
getURL, setURL

 

Methods inherited from interface oracle.ide.model.Element
getChildren

 

Methods inherited from interface oracle.ide.model.Displayable
getLongLabel, getToolTipText, toString

 

Field Detail

FILE_EXT

public static final java.lang.String FILE_EXT
See Also:
Constant Field Values

Constructor Detail

ProviderNode

public ProviderNode()

Method Detail

getAttributes

public Attributes getAttributes()
Description copied from interface: Element
This method returns an Attributes object that encodes the attributes of the Element. Changing the attribute settings on the return object changes the element attributes. Subclasses should use their super class attributes object to define their own attributes. This allows subclasses to inherit their super class attributes. If a subclass does not wish to inherit attributes, they should first call getAttributes().clear() and define new attributes.
Specified by:
getAttributes in interface Element
Overrides:
getAttributes in class Node

getIcon

public javax.swing.Icon getIcon()
Description copied from class: Node
Displayable interface method. The Node class returns a generic icon.
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()
Description copied from class: Node
Displayable interface method. The Node class returns the file name part of the currently set URL. If the currently set URL is null, then this method returns "<null>".
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.

newObjectStore

protected ObjectStore newObjectStore()
Overrides:
newObjectStore in class DataContainer

getSettings

public ProviderSettings getSettings()

setSettings

public void setSettings(ProviderSettings settings)

getData

public java.lang.Object getData()
Description copied from interface: Element
Returns the data object associated with this Element. Implementations will often simply return this, since the Element is often its own data object. If the implementation returns an object other than this, be sure to set ElementAttributes.DECORATES_DATA_ELEMENT.
Specified by:
getData in interface Element
Overrides:
getData in class Node
Returns:
the data object associated with this Element instance.

getObjectStoreTarget

protected java.lang.Object getObjectStoreTarget()
Overrides:
getObjectStoreTarget in class DataContainer

mayHaveChildren

public boolean mayHaveChildren()
Description copied from class: DataContainer
Part of the Element interface. This implementation always returns true.
Specified by:
mayHaveChildren in interface Element
Overrides:
mayHaveChildren in class DataContainer
Returns:
true if this Element may contain child Elements.
See Also:
Element.mayHaveChildren()

closeImpl

protected void closeImpl()
                  throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the close() behavior. Node.close() invokes this only if the node is open, under write lock. The Node implementation does nothing.
Overrides:
closeImpl in class DataContainer
Throws:
java.io.IOException - if an I/O error occurred while closing

getProviderIdentifier

public java.lang.Object getProviderIdentifier()
Description copied from interface: DBObjectProviderNode
Returns the identifier for the provider - if an online node this will be a String that is the connection name.
Specified by:
getProviderIdentifier in interface DBObjectProviderNode

getProviderType

public java.lang.String getProviderType()
Description copied from interface: DBObjectProviderNode
Returns the type of provider for this node - e.g. "db" or "offlinedb".
Specified by:
getProviderType in interface DBObjectProviderNode

Skip navigation links

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

E17493-03


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