|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler oracle.jdeveloper.db.migration.CMConnectionsReader
public class CMConnectionsReader
Utility that reads a 10.1.3 legacy connection file (IDEConnections.xml) and obtaining the connection details. This class is used by DBConnectionMigrator for the migration of CM connections for use by the CA architechture
Field Summary | |
---|---|
static java.lang.String |
CONNECTION_NAME
Property name: names the connection. |
static java.lang.String |
CONNECTION_TAG
|
static java.lang.String |
CONNECTION_TYPE
Property name: connection type. |
static java.lang.String |
DEFAULT_FILE
|
static java.lang.String |
DEFAULT_PROPERTIES_FILE
|
static java.lang.String |
ORMI_PASSWD
|
static java.lang.String |
PASSWORD
Property name: connection password. |
Constructor Summary | |
---|---|
CMConnectionsReader()
|
|
CMConnectionsReader(java.lang.String fName,
boolean isAbsolutePath)
Constructor |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
|
void |
endEntity(java.lang.String name)
|
java.util.Map<java.lang.String,javax.naming.Referenceable> |
getMigratedConnections()
Migrates all the connections returned by read() , migrates them to
the new Referenceable (CA) format and returns them in a map keyed by name. |
java.util.List<java.util.Properties> |
read()
Read all of the connections descriptors from storage. |
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startEntity(java.lang.String name)
|
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 |
---|
public static final java.lang.String DEFAULT_FILE
public static final java.lang.String DEFAULT_PROPERTIES_FILE
public static final java.lang.String CONNECTION_TAG
public static final java.lang.String PASSWORD
public static final java.lang.String ORMI_PASSWD
public static final java.lang.String CONNECTION_NAME
public static final java.lang.String CONNECTION_TYPE
Constructor Detail |
---|
public CMConnectionsReader()
public CMConnectionsReader(java.lang.String fName, boolean isAbsolutePath)
fName
- of the file to read the connection data fromisAbsolutePath
- true if this is an filesystem level absolutepath,
false if this is a class relative filenameMethod Detail |
---|
public final java.util.Map<java.lang.String,javax.naming.Referenceable> getMigratedConnections()
read()
, migrates them to
the new Referenceable (CA) format and returns them in a map keyed by name.
Data can be lost by the migration process, to get the old descriptors
directly use read()
instead.
public final java.util.List<java.util.Properties> read()
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |