Extension SDK

oracle.jdeveloper.cm
Class DefaultConnectionStore

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--oracle.jdeveloper.cm.DefaultConnectionStore
All Implemented Interfaces:
ConnectionStore, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, WritableConnectionStore

public final class DefaultConnectionStore
extends org.xml.sax.helpers.DefaultHandler
implements WritableConnectionStore

Default ConnectionStore (9i XML file format)


Field Summary
static java.lang.String CONNECTION_TAG
           
static java.lang.String DEFAULT_FILE
           
static java.lang.String ROOT_TAG
           
 
Constructor Summary
DefaultConnectionStore()
          Constructor
DefaultConnectionStore(java.lang.String fName, boolean isAbsolutePath)
          Constructor
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
           
 java.util.List read()
          Read all of the descriptors from storage.
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
           
 void write(java.lang.String outputFile, java.util.List descriptors, boolean stripPasswords)
          Writes the list of descriptors to storage.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FILE

public static final java.lang.String DEFAULT_FILE

CONNECTION_TAG

public static final java.lang.String CONNECTION_TAG

ROOT_TAG

public static final java.lang.String ROOT_TAG
Constructor Detail

DefaultConnectionStore

public DefaultConnectionStore()
Constructor

DefaultConnectionStore

public DefaultConnectionStore(java.lang.String fName,
                              boolean isAbsolutePath)
Constructor
Parameters:
pathname - of the file to read the connection data from
isAbsolutePath - true if this is an filesystem level absolutepath, false if this is a class relative filename
Method Detail

write

public final void write(java.lang.String outputFile,
                        java.util.List descriptors,
                        boolean stripPasswords)
                 throws CMException
Writes the list of descriptors to storage.
Specified by:
write in interface WritableConnectionStore
Parameters:
outputFile - the file which will get the data,
descriptors - the descriptors to save
stripPasswords - should the passwords be removed before writing.

read

public final java.util.List read()
Read all of the descriptors from storage.
Specified by:
read in interface ConnectionStore

startDocument

public void startDocument()
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String uri,
                         java.lang.String name,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String uri,
                       java.lang.String name,
                       java.lang.String qName)
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

Extension SDK