|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.openjpa.lib.meta.XMLMetaDataParser org.apache.openjpa.lib.meta.CFMetaDataParser org.apache.openjpa.persistence.XMLPersistenceMetaDataParser org.apache.openjpa.persistence.jdbc.XMLPersistenceMappingParser
public class XMLPersistenceMappingParser
Custom SAX parser used by the system to parse persistence mapping files.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser |
---|
ELEM_ACCESS, ELEM_ATTRS, ELEM_CASCADE, ELEM_CASCADE_ALL, ELEM_CASCADE_MER, ELEM_CASCADE_PER, ELEM_CASCADE_REF, ELEM_CASCADE_REM, ELEM_LISTENER, ELEM_PKG, ELEM_PU_DEF, ELEM_PU_META |
Constructor Summary | |
---|---|
XMLPersistenceMappingParser(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf)
Constructor; supply configuration. |
Method Summary | |
---|---|
protected void |
endClassMapping(org.apache.openjpa.meta.ClassMetaData meta)
|
protected void |
endClassMappingElement(java.lang.String name)
|
protected void |
endFieldMapping(org.apache.openjpa.meta.FieldMetaData field)
Extend to set the columns. |
protected void |
endSystemMappingElement(java.lang.String name)
|
protected void |
reset()
|
protected void |
startClassMapping(org.apache.openjpa.meta.ClassMetaData meta,
boolean mappedSuper,
org.xml.sax.Attributes attrs)
|
protected java.lang.Object |
startClassMappingElement(java.lang.String name,
org.xml.sax.Attributes attrs)
|
protected void |
startFieldMapping(org.apache.openjpa.meta.FieldMetaData field,
org.xml.sax.Attributes attrs)
Extend to clear annotation mapping info. |
protected boolean |
startLob(org.xml.sax.Attributes attrs)
|
protected java.lang.Object |
startSystemMappingElement(java.lang.String name,
org.xml.sax.Attributes attrs)
|
Methods inherited from class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser |
---|
classForName, currentElement, currentParent, currentStrategy, endClass, endClassElement, endEmbeddedId, endGeneratedValue, endId, endIdClass, endLob, endNamedNativeQuery, endNamedQuery, endQueryHint, endSequenceGenerator, endSystemElement, endVersion, getAnnotationParser, getClassAttributeName, getClassElementDepth, getConfiguration, getEnvClassLoader, getMappingOverride, getMode, getPackageAttributeName, getRepository, getSchemaSource, isClassElementName, isMappingMode, isMappingOverrideMode, isMetaDataMode, isQueryMode, isRuntime, parseBasic, parseEmbedded, parseManyToMany, parseManyToOne, parseOneToMany, parseOneToOne, popElement, pushElement, setAnnotationParser, setCascades, setEnvClassLoader, setMappingOverride, setMode, setMode, setRepository, startCascade, startClass, startClassElement, startEmbeddedId, startGeneratedValue, startId, startIdClass, startNamedNativeQuery, startNamedQuery, startQueryHint, startSequenceGenerator, startSystemElement, startVersion |
Methods inherited from class org.apache.openjpa.lib.meta.CFMetaDataParser |
---|
classForName, classForName, currentClassName, currentPackage, endElement, endPackage, endPackageElement, getPackageElementDepth, isPackageElementName, startElement, startPackage, startPackageElement |
Methods inherited from class org.apache.openjpa.lib.meta.XMLMetaDataParser |
---|
addComments, addResult, characters, clear, comment, currentClassLoader, currentComments, currentDepth, currentLocation, currentText, endCDATA, endDTD, endElement, endEntity, error, fatalError, finish, getClassLoader, getDocType, getException, getException, getLexicalHandler, getLocation, getLog, getParseComments, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isValidating, parse, parse, parse, parse, parse, parse, parsed, parseNewResource, setCaching, setClassLoader, setDocumentLocator, setLexicalHandler, setLocation, setLog, setParseComments, setParseText, setSourceIsSystemId, setSuffix, setValidating, startCDATA, startDTD, startElement, startEntity |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.lib.meta.MetaDataParser |
---|
clear, getResults, parse, parse, parse, parse, parse, parse, setClassLoader |
Constructor Detail |
---|
public XMLPersistenceMappingParser(org.apache.openjpa.jdbc.conf.JDBCConfiguration conf)
Method Detail |
---|
protected void reset()
reset
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
protected java.lang.Object startSystemMappingElement(java.lang.String name, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startSystemMappingElement
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void endSystemMappingElement(java.lang.String name) throws org.xml.sax.SAXException
endSystemMappingElement
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected java.lang.Object startClassMappingElement(java.lang.String name, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startClassMappingElement
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void endClassMappingElement(java.lang.String name) throws org.xml.sax.SAXException
endClassMappingElement
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void startClassMapping(org.apache.openjpa.meta.ClassMetaData meta, boolean mappedSuper, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startClassMapping
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void endClassMapping(org.apache.openjpa.meta.ClassMetaData meta) throws org.xml.sax.SAXException
endClassMapping
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected boolean startLob(org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startLob
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void startFieldMapping(org.apache.openjpa.meta.FieldMetaData field, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startFieldMapping
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
protected void endFieldMapping(org.apache.openjpa.meta.FieldMetaData field) throws org.xml.sax.SAXException
endFieldMapping
in class org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |