public abstract class BaseDBObjectTextNode extends TextNode implements DBObjectNode
DBObjectNode,
BaseDBObjectNode,
BasePlSqlTextNodeLOG_READONLY| Constructor and Description |
|---|
BaseDBObjectTextNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCurrentBuild()
Deprecated.
|
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)
Deprecated.
Use #getDBObjectFromBuffer
|
SourceObject |
getDBObjectFromBuffer()
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.
|
int |
getLine(int offset)
Returns the line number in the TextBuffer for the given offset if it can
be found, zero otherwise.
|
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, addWeakTextBufferListener, closeImpl, createOutputStreamWriter, createReader, facadeBuffer, getInputStream, getInputStream, getLoadEncoding, getReader, getSaveEncoding, getTextBufferDirectly, hasEmptyTextBuffer, isDirty, isReadOnly, markDirty, markDirtyImpl, readUnlock, releaseTextBuffer, removeTextBufferListener, removeWeakTextBufferListener, reportOpenException, revertImpl, saveImpl, setDefaultLineTerminator, setLoadEncoding, setSaveEncoding, tryAcquireTextBuffer, upgradeUnlock, urlReadOnlyChanged, writeUnlockaddNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, addWeakNodeListener, 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, removeWeakNodeListener, 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, mayHaveChildrengetAttributedLabel, getLongLabel, 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.public int getLine(int offset)
offset - The offset from the start of the TextBufferprotected 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.@Deprecated public final SourceObject getDBObject(boolean fullyBuilt)
public final SourceObject getDBObjectFromBuffer()
@Deprecated 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