Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.jdeveloper.offlinedb.browser
Class SchemaNode

java.lang.Object
  extended by oracle.ide.model.Node
      extended by oracle.jdeveloper.offlinedb.browser.SchemaNode
All Implemented Interfaces:
Displayable, Element, LazyLoadable, Locatable, Subject, Dirtyable

public class SchemaNode
extends Node

Node for the schema/package object in the system navigator. Massively simplified in 10.1.3 - no longer has any children as they are handled seperately by the new dynamic projects.


Field Summary
static java.lang.String FILE_EXT
           
static java.lang.String SCHEMA_PACKAGE_KEY
           
 
Fields inherited from class oracle.ide.model.Node
LOG_READONLY
 
Constructor Summary
SchemaNode()
           
 
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.
 javax.swing.Icon getIcon()
          Displayable interface method.
 Schema getSchema()
           
 java.lang.String getShortLabel()
          Displayable interface method.
protected  void openImpl()
          Subclasses should override this method to customize the open() behavior.
protected  void saveImpl()
          Subclasses should override this method to customize the save() behavior.
 void setSchema(Schema schema)
           
 
Methods inherited from class oracle.ide.model.Node
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, 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, readLock, readLockCount, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, 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
 

Field Detail

FILE_EXT

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

SCHEMA_PACKAGE_KEY

public static final java.lang.String SCHEMA_PACKAGE_KEY
See Also:
Constant Field Values
Constructor Detail

SchemaNode

public SchemaNode()
Method Detail

getSchema

public Schema getSchema()

setSchema

public void setSchema(Schema schema)

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.

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

openImpl

protected void openImpl()
                 throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the open() behavior. Node.open() invokes this only if the node is not open, under write lock. The Node implementation does nothing.

Overrides:
openImpl in class Node
Throws:
java.io.IOException - if an I/O error occurred while opening

saveImpl

protected void saveImpl()
                 throws java.io.IOException
Description copied from class: Node
Subclasses should override this method to customize the save() behavior. Node.save() invokes this only if the node is dirty, under write lock. The Node implementation does nothing.

Overrides:
saveImpl in class Node
Throws:
java.io.IOException - if an I/O error occurred while saving

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 Node
Throws:
java.io.IOException - if an I/O error occurred while closing

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

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