public class ProviderNode extends DataContainer implements DBObjectProviderNode
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXT |
LOG_READONLYDATA_KEY| Constructor and Description |
|---|
ProviderNode() |
| Modifier and Type | Method and Description |
|---|---|
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() |
static javax.swing.Icon |
getOfflineDatabaseIcon()
Gets the Icon to use in the product to represent an Offline Database DBObjectProvider.
|
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) |
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, updateaddNodeListener, 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, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isWriteLocked, isWriteLockHeld, 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, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrengetLongLabel, getToolTipText, toStringpublic static final java.lang.String FILE_EXT
public Attributes getAttributes()
ElementAttributes 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.getAttributes in interface ElementgetAttributes in class Nodepublic javax.swing.Icon getIcon()
NodeDisplayable interface method. The Node class returns a generic icon.getIcon in interface DisplayablegetIcon in class NodeIcon to be displayed for the Displayable.public java.lang.String getShortLabel()
NodeDisplayable 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>".getShortLabel in interface DisplayablegetShortLabel in class NodeDisplayable that can be shown to the user.protected ObjectStore newObjectStore()
newObjectStore in class DataContainerpublic ProviderSettings getSettings()
public void setSettings(ProviderSettings settings)
public java.lang.Object getData()
ElementElement. 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.protected java.lang.Object getObjectStoreTarget()
getObjectStoreTarget in class DataContainerpublic boolean mayHaveChildren()
DataContainerElement interface. This implementation always returns true.mayHaveChildren in interface ElementmayHaveChildren in class DataContainertrue if this Element may contain child Elements.Element.mayHaveChildren()
protected void closeImpl()
throws java.io.IOException
NodeNode.close() invokes this only if the node is open, under write lock. The Node implementation does nothing.closeImpl in class DataContainerjava.io.IOException - if an I/O error occurred while closingpublic java.lang.Object getProviderIdentifier()
DBObjectProviderNodegetProviderIdentifier in interface DBObjectProviderNodepublic java.lang.String getProviderType()
DBObjectProviderNodegetProviderType in interface DBObjectProviderNodepublic static javax.swing.Icon getOfflineDatabaseIcon()