|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler
public class ConnectionDescriptorXmlHandler
The handler catches Parsing events raised by the xml-parser
and builds up the ConnectionRepository that is used
within the OJB.
TODO: Reading of metadata are split in two classes RepositoryXmlHandler and
ConnectionDescriptorXmlHandler. Thus we should only read relevant tags in this
classes. In further versions we should split repository.dtd in two parts, one for connetion
metadata, one for pc object metadata.
| Field Summary |
|---|
| Fields inherited from interface org.apache.ojb.broker.locking.IsolationLevels |
|---|
IL_DEFAULT, IL_NONE, IL_OPTIMISTIC, IL_READ_COMMITTED, IL_READ_UNCOMMITTED, IL_REPEATABLE_READ, IL_SERIALIZABLE, LITERAL_IL_NONE, LITERAL_IL_OPTIMISTIC, LITERAL_IL_READ_COMMITTED, LITERAL_IL_READ_UNCOMMITTED, LITERAL_IL_REPEATABLE_READ, LITERAL_IL_SERIALIZABLE |
| Constructor Summary | |
|---|---|
ConnectionDescriptorXmlHandler(ConnectionRepository cr)
build a handler that fills the given repository from an XML file. |
|
| Method Summary | |
|---|---|
void |
endDocument()
Here we overgive the found descriptors to ConnectionRepository. |
void |
endElement(String uri,
String name,
String qName)
endElement callback. |
void |
error(SAXParseException e)
Error callback. |
void |
fatalError(SAXParseException e)
fatal error callback. |
void |
startDocument()
startDocument callback, nothing to do here. |
void |
startElement(String uri,
String name,
String qName,
Attributes atts)
startElement callback. |
void |
warning(SAXParseException e)
warning callback. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionDescriptorXmlHandler(ConnectionRepository cr)
| Method Detail |
|---|
public void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerpublic void endDocument()
ConnectionRepository.
endDocument in interface ContentHandlerendDocument in class DefaultHandler
public void startElement(String uri,
String name,
String qName,
Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandlerMetadataException - indicating mapping errors
public void endElement(String uri,
String name,
String qName)
endElement in interface ContentHandlerendElement in class DefaultHandler
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXException
public void fatalError(SAXParseException e)
throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXException
public void warning(SAXParseException e)
throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||