public class XMLPersistenceMappingParser extends XMLPersistenceMetaDataParser
XMLPersistenceMetaDataParser.localDBIdentifiers
_cls, ELEM_ACCESS, ELEM_ATTRS, ELEM_CASCADE, ELEM_CASCADE_ALL, ELEM_CASCADE_DET, ELEM_CASCADE_MER, ELEM_CASCADE_PER, ELEM_CASCADE_REF, ELEM_CASCADE_REM, ELEM_DELIM_IDS, ELEM_LISTENER, ELEM_PKG, ELEM_PU_DEF, ELEM_PU_META, ELEM_XML_MAP_META_COMPLETE
_extendedNamespace, _openjpaNamespace
Constructor and Description |
---|
XMLPersistenceMappingParser(JDBCConfiguration conf)
Constructor; supply configuration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDeferredEmbeddableMetaData()
Process all deferred embeddables using an unknown access type.
|
protected void |
applyDeferredEmbeddableOverrides(Class<?> cls)
Process all deferred embeddable overrides for a given class.
|
protected void |
clearDeferredMetaData() |
protected void |
endClassMapping(ClassMetaData meta)
Implement to finalize class mapping.
|
protected void |
endClassMappingElement(String name)
Implement to parse a mapping element within a class.
|
protected void |
endFieldMapping(FieldMetaData field)
Extend to set the columns.
|
protected void |
endSystemMappingElement(String name)
Implement to parse a mapping element outside of any class.
|
protected String |
normalizeCatalogName(String catName) |
protected String |
normalizeSchemaName(String schName) |
protected String |
normalizeSequenceName(String seqName) |
protected void |
parseEagerFetchModeAttr(FieldMetaData fmd,
Attributes attrs) |
protected void |
parseElementClassCriteriaAttr(FieldMetaData fmd,
Attributes attrs) |
protected void |
parseStrategy(FieldMetaData fmd,
Attributes attrs) |
protected void |
reset()
Override this method to clear any state and ready the parser for
a new document.
|
protected void |
setTargetIdentifier(Column col,
String refColumnName) |
protected void |
startClassMapping(ClassMetaData meta,
boolean mappedSuper,
Attributes attrs)
Implement to add mapping attributes to class.
|
protected Object |
startClassMappingElement(String name,
Attributes attrs)
Implement to parse a mapping element within a class.
|
protected boolean |
startDelimitedIdentifiers() |
protected boolean |
startExtendedClass(String elem,
Attributes attrs) |
protected void |
startFieldMapping(FieldMetaData field,
Attributes attrs)
Extend to clear annotation mapping info.
|
protected boolean |
startLob(Attributes attrs)
Parse lob.
|
protected boolean |
startOrderColumn(Attributes attrs)
Process OrderColumn.
|
protected Object |
startSystemMappingElement(String name,
Attributes attrs)
Implement to parse a mapping element outside of any class.
|
addDeferredEmbeddableMetaData, addToParseList, addToParseList, classForName, currentElement, currentParent, currentStrategy, deferEmbeddable, endClass, endClassElement, endEmbeddedId, endExtendedClass, endGeneratedValue, endId, endIdClass, endLob, endNamedNativeQuery, endNamedQuery, endQueryHint, endQueryString, endSequenceGenerator, endSystemElement, endVersion, getAnnotationParser, getClassAttributeName, getClassElementDepth, getConfiguration, getEnvClassLoader, getMappingOverride, getMode, getPackageAttributeName, getParseClass, getParseList, getRepository, getSchemaSource, isClassElementName, isDeferredEmbeddable, isDuplicateClass, isDuplicateQuery, isMappingMode, isMappingOverrideMode, isMetaDataMode, isQueryMode, isRuntime, parse, parse, parseBasic, parseElementCollection, parseEmbedded, parseListContains, parseManyToMany, parseManyToOne, parseOneToMany, parseOneToOne, peekElement, popElement, pushElement, setAnnotationParser, setCascades, setDeferredEmbeddableAccessType, setEnvClassLoader, setMappingOverride, setMode, setMode, setOrphanRemoval, setRepository, startCascade, startClass, startClassElement, startEmbeddedId, startGeneratedValue, startId, startIdClass, startNamedNativeQuery, startNamedQuery, startQueryHint, startQueryString, startSequenceGenerator, startSystemElement, startVersion
classForName, classForName, currentClassName, currentPackage, endElement, endPackage, endPackageElement, getPackageElementDepth, isPackageElementName, startElement, startPackage, startPackageElement
addComments, addResult, characters, clear, comment, currentClassLoader, currentComments, currentDepth, currentLocation, currentText, endCDATA, endDTD, endElement, endEntity, error, fatalError, finish, getClassLoader, getDocType, getException, getException, getException, getLexicalHandler, getLocation, getLog, getOverrideContextClassloader, getParseComments, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isParsing, isValidating, parse, parse, parse, parse, parsed, parseNewResource, setCaching, setClassLoader, setDocumentLocator, setLexicalHandler, setLocation, setLog, setOverrideContextClassloader, setParseComments, setParseText, setParsing, setSourceIsSystemId, setSuffix, setValidating, startCDATA, startDTD, startElement, startEntity
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getResults, parse, parse, parse, parse, setClassLoader
public XMLPersistenceMappingParser(JDBCConfiguration conf)
protected void reset()
CFMetaDataParser
super.reset()
to clear superclass state.reset
in class XMLPersistenceMetaDataParser
protected Object startSystemMappingElement(String name, Attributes attrs) throws SAXException
XMLPersistenceMetaDataParser
startSystemMappingElement
in class XMLPersistenceMetaDataParser
SAXException
protected void endSystemMappingElement(String name) throws SAXException
XMLPersistenceMetaDataParser
endSystemMappingElement
in class XMLPersistenceMetaDataParser
SAXException
protected Object startClassMappingElement(String name, Attributes attrs) throws SAXException
XMLPersistenceMetaDataParser
startClassMappingElement
in class XMLPersistenceMetaDataParser
SAXException
protected void endClassMappingElement(String name) throws SAXException
XMLPersistenceMetaDataParser
endClassMappingElement
in class XMLPersistenceMetaDataParser
SAXException
protected void startClassMapping(ClassMetaData meta, boolean mappedSuper, Attributes attrs) throws SAXException
XMLPersistenceMetaDataParser
startClassMapping
in class XMLPersistenceMetaDataParser
SAXException
protected void endClassMapping(ClassMetaData meta) throws SAXException
XMLPersistenceMetaDataParser
endClassMapping
in class XMLPersistenceMetaDataParser
SAXException
protected boolean startLob(Attributes attrs) throws SAXException
XMLPersistenceMetaDataParser
startLob
in class XMLPersistenceMetaDataParser
SAXException
protected void startFieldMapping(FieldMetaData field, Attributes attrs) throws SAXException
startFieldMapping
in class XMLPersistenceMetaDataParser
SAXException
protected void endFieldMapping(FieldMetaData field) throws SAXException
endFieldMapping
in class XMLPersistenceMetaDataParser
SAXException
protected boolean startOrderColumn(Attributes attrs) throws SAXException
startOrderColumn
in class XMLPersistenceMetaDataParser
SAXException
protected void applyDeferredEmbeddableOverrides(Class<?> cls) throws SAXException
applyDeferredEmbeddableOverrides
in class XMLPersistenceMetaDataParser
embedType
- embeddable classaccess
- class level access for embeddableSAXException
protected void clearDeferredMetaData()
clearDeferredMetaData
in class XMLPersistenceMetaDataParser
protected void addDeferredEmbeddableMetaData()
addDeferredEmbeddableMetaData
in class XMLPersistenceMetaDataParser
protected boolean startDelimitedIdentifiers()
startDelimitedIdentifiers
in class XMLPersistenceMetaDataParser
protected String normalizeSequenceName(String seqName)
normalizeSequenceName
in class XMLPersistenceMetaDataParser
protected String normalizeSchemaName(String schName)
normalizeSchemaName
in class XMLPersistenceMetaDataParser
protected String normalizeCatalogName(String catName)
normalizeCatalogName
in class XMLPersistenceMetaDataParser
protected void parseEagerFetchModeAttr(FieldMetaData fmd, Attributes attrs) throws SAXException
parseEagerFetchModeAttr
in class XMLPersistenceMetaDataParser
SAXException
protected void parseElementClassCriteriaAttr(FieldMetaData fmd, Attributes attrs) throws SAXException
parseElementClassCriteriaAttr
in class XMLPersistenceMetaDataParser
SAXException
protected void parseStrategy(FieldMetaData fmd, Attributes attrs)
parseStrategy
in class XMLPersistenceMetaDataParser
protected boolean startExtendedClass(String elem, Attributes attrs) throws SAXException
startExtendedClass
in class CFMetaDataParser
SAXException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.