public abstract class BaseDBObjectTextNode extends TextNode implements DBObjectNode
DBObjectNode,
BaseDBObjectNode,
BasePlSqlTextNodeLOG_READONLY| Constructor and Description |
|---|
BaseDBObjectTextNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCurrentBuild()
If the object requested by a call to getDBObject( Mode.BUILT ) is currently
being built, this will request that process is cancelled.
|
protected SourceObject |
findProviderDBObject()
Returns the instance of the DBbject this node represents that is owned by the provider.
|
DBObject |
getDBObject()
Returns the DBObject for the node.
|
SourceObject |
getDBObject(boolean fullyBuilt)
Return a SourceObject whose source matches the current contents of the TextBuffer.
|
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.
|
protected void |
openImpl()
Subclasses should override this method to customize the open()
behavior.
|
protected void |
resetBuffer(SourceObject obj)
Aquires the TextBuffer and resets its contents to match the source on
the given SourceObject.
|
protected void |
updateSource(SourceObject so,
java.lang.String source)
Sets the source on the SourceObject.
|
acquireTextBuffer, acquireTextBufferInterruptibly, acquireTextBufferOrThrow, addTextBufferListener, closeImpl, createOutputStreamWriter, createReader, facadeBuffer, getInputStream, getInputStream, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, isReadOnly, markDirty, markDirtyImpl, readUnlock, releaseTextBuffer, removeTextBufferListener, reportOpenException, revertImpl, saveImpl, setDefaultLineTerminator, setLoadEncoding, setSaveEncoding, tryAcquireTextBuffer, upgradeUnlock, urlReadOnlyChanged, writeUnlockaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getChildren, getData, getLongLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOrWriteLocked, isTrackedInNodeCache, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, mayHaveChildren, nodeLock, notifyObservers, open, readLock, readLockCount, readLockInterruptibly, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, revert, runUnderReadLock, runUnderWriteLock, save, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, writeLock, writeLockCount, writeLockInterruptiblyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, initgetObjectType, getProviderIdentifier, getSchemaNamegetAttributes, getChildren, getData, mayHaveChildrengetLongLabel, getToolTipText, toStringpublic java.lang.String getProviderType()
getProviderType in interface DBObjectProviderNodepublic DBObject getDBObject()
getDBObject in interface DBObjectNodepublic DBObjectProvider getProvider()
getProvider in interface DBObjectNodeDBObjectTypeNode.getProviderIdentifier()public javax.swing.Icon getIcon()
getIcon in interface DisplayablegetIcon in class NodeIcon to be displayed for the
Displayable.public java.lang.String getShortLabel()
getShortLabel in interface DisplayablegetShortLabel in class NodeDisplayable
that can be shown to the user.protected void openImpl()
throws java.io.IOException
NodeNode.open() invokes this only if the node is not open, under
write lock. The Node implementation does nothing.public final SourceObject getDBObject(boolean fullyBuilt)
See Mode for more details.
public final void cancelCurrentBuild()
protected SourceObject findProviderDBObject()
protected void updateSource(SourceObject so, java.lang.String source)
so - The Source Objectsource - The sourceprotected void resetBuffer(SourceObject obj)
obj - the object with the correct source that the text buffer
should match