Extension SDK

oracle.jdeveloper.cm
Class DefaultConnectionStore

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byoracle.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
See Also:
Constant Field Values

CONNECTION_TAG

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

ROOT_TAG

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

DefaultConnectionStore

public DefaultConnectionStore()
Constructor


DefaultConnectionStore

public DefaultConnectionStore(java.lang.String fName,
                              boolean isAbsolutePath)
Constructor

Parameters:
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.
Throws:
CMException

read

public final java.util.List read()
Read all of the descriptors from storage.

Specified by:
read in interface ConnectionStore

startDocument

public void startDocument()
Specified by:
startDocument in interface org.xml.sax.ContentHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface org.xml.sax.ContentHandler

startElement

public void startElement(java.lang.String uri,
                         java.lang.String name,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Specified by:
startElement in interface org.xml.sax.ContentHandler

endElement

public void endElement(java.lang.String uri,
                       java.lang.String name,
                       java.lang.String qName)
Specified by:
endElement in interface org.xml.sax.ContentHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface org.xml.sax.ContentHandler

Extension SDK

 

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