Extension SDK 10.1.2


oracle.jdeveloper.cm.dt
Class DatabaseEditorNode

java.lang.Object
  extended byoracle.ide.model.DefaultDisplayable
      extended byoracle.ide.model.DefaultElement
          extended byoracle.ide.model.DefaultDocument
              extended byoracle.ide.model.DefaultNode
                  extended byoracle.jdeveloper.cm.dt.DatabaseEditorNode

All Implemented Interfaces:
Category, Data, Dirtyable, Displayable, Document, Element, LazyLoadable, Locatable, Node, Subject

public abstract class DatabaseEditorNode
extends DefaultNode

Field Summary

Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED

Fields inherited from interface oracle.ide.model.Category
UNDEFINED

Constructor Summary
protected DatabaseEditorNode()

Method Summary
void close()
Closes the Document and unloads any associated data.
static DatabaseEditorNode findOrCreateNode(java.net.URL url)
java.lang.String getConnectionName()
static java.lang.String getConnectionName(java.net.URL url)
Database getDatabase()
long getTimestamp()
Returns the timestamp associated with the Document, which indicates the time at which the document was last modified.
static boolean isDatabaseEditorNodeURL(java.net.URL url)
static boolean isDatabaseEditorProtocol(java.lang.String protocol)
void open()
Opens the Document and loads any associated data into the appropriate data structures.
static void registerProtocol(java.lang.String protocol, java.lang.Class nodeClass)

Methods inherited from class oracle.ide.model.DefaultNode
equalsImpl, getCategory, setURL

Methods inherited from class oracle.ide.model.DefaultDocument
attach, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestampDirectly, getToolTipText, getURL, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, refreshTimestamp, save, setOpen, setTimestampDirectly, setURLDirectly

Methods inherited from class oracle.ide.model.DefaultElement
getAttributes, getChildren, getData, mayHaveChildren

Methods inherited from class oracle.ide.model.DefaultDisplayable
getIcon, toString

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

Methods inherited from interface oracle.ide.model.Document
getInputStream, isNew, isReadOnly, save

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

Methods inherited from interface oracle.ide.model.Element
getAttributes, getChildren, mayHaveChildren

Methods inherited from interface oracle.ide.model.Data
getData

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

Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers

Methods inherited from interface oracle.ide.model.Dirtyable
isDirty, markDirty

Methods inherited from interface oracle.ide.model.LazyLoadable
isOpen

Constructor Detail

DatabaseEditorNode

protected DatabaseEditorNode()

Method Detail

isDatabaseEditorNodeURL

public static boolean isDatabaseEditorNodeURL(java.net.URL url)

isDatabaseEditorProtocol

public static boolean isDatabaseEditorProtocol(java.lang.String protocol)

registerProtocol

public static void registerProtocol(java.lang.String protocol,
                                    java.lang.Class nodeClass)

getConnectionName

public static java.lang.String getConnectionName(java.net.URL url)

findOrCreateNode

public static final DatabaseEditorNode findOrCreateNode(java.net.URL url)

getConnectionName

public java.lang.String getConnectionName()

getDatabase

public Database getDatabase()

close

public void close()
           throws java.io.IOException
Description copied from interface: Document
Closes the Document and unloads any associated data. When this method returns, the state of the Document object should be equivalent to when the Document object has just been instantiated but not yet opened.
Specified by:
close in interface Document
Overrides:
close in class DefaultDocument
Throws:
java.io.IOException
See Also:
Document.close()

open

public void open()
          throws java.io.IOException
Description copied from interface: Document
Opens the Document and loads any associated data into the appropriate data structures. If the implementation of this method completes successfully, the LazyLoadable.isOpen() method should then return true.
Specified by:
open in interface Document
Overrides:
open in class DefaultDocument
Throws:
java.io.IOException
See Also:
Document.open()

getTimestamp

public long getTimestamp()
Description copied from interface: Document
Returns the timestamp associated with the Document, which indicates the time at which the document was last modified. The returned long is expressed in milliseconds since 00:00:00 GMT Jan 1, 1970.
Specified by:
getTimestamp in interface Document
Overrides:
getTimestamp in class DefaultDocument
See Also:
Document.getTimestamp()

Extension SDK


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