kodo.meta
Class QueryMetaDataParser
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--com.solarmetric.meta.XMLMetaDataParser
|
+--com.solarmetric.meta.CFMetaDataParser
|
+--kodo.meta.QueryMetaDataParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, MetaDataParser
- public class QueryMetaDataParser
- extends CFMetaDataParser
Custom SAX parser used by the system to parse JDO metadata
files for named queries.
| Methods inherited from class com.solarmetric.meta.XMLMetaDataParser |
addResult, characters, clear, currentClassLoader, endElement, error, fatalError, findMetaData, getClassLoader, getCurrentLocation, getLexicalHandler, getLocation, getLog, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getText, isValidating, parse, parse, parse, parse, parseNew, setClassLoader, setDocumentLocator, setLocation, setLog, setParseText, setSourceIsSystemId, setValidating, startElement, throwException, throwException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryMetaDataParser
public QueryMetaDataParser(JDOConfiguration conf)
- Constructor. Supply configuration.
getRepository
public QueryMetaDataRepository getRepository()
- Returns the repository for this parser. If none has been set, creates
a new repository and sets it.
setRepository
public void setRepository(QueryMetaDataRepository repos)
- Set the metadata repository for this parser.
finish
protected void finish()
- Overrides:
finish in class XMLMetaDataParser
getExtension
protected String getExtension()
- Overrides:
getExtension in class XMLMetaDataParser
getExpectedRootName
protected String getExpectedRootName()
- Overrides:
getExpectedRootName in class XMLMetaDataParser
reset
protected void reset()
- Overrides:
reset in class CFMetaDataParser
getDocType
protected Reader getDocType()
throws IOException
- Overrides:
getDocType in class XMLMetaDataParser
startClass
protected void startClass(String className,
Attributes attrs)
throws SAXException
- Overrides:
startClass in class CFMetaDataParser
endClass
protected void endClass(String className)
- Overrides:
endClass in class CFMetaDataParser
startClassElement
protected void startClassElement(String name,
Attributes attrs)
throws SAXException
- Overrides:
startClassElement in class CFMetaDataParser
endClassElement
protected void endClassElement(String name)
throws SAXException
- Overrides:
endClassElement in class CFMetaDataParser
startQuery
protected void startQuery(Attributes attrs)
throws SAXException
endQuery
protected void endQuery()
startDeclarations
protected void startDeclarations(Attributes attrs)
throws SAXException
startResult
protected void startResult(Attributes attrs)
throws SAXException
endResult
protected void endResult()
endFilter
protected void endFilter()
throws SAXException
endSQL
protected void endSQL()
throws SAXException
endJDOQL
protected void endJDOQL()
throws SAXException
resolveEntity
public InputSource resolveEntity(String pub,
String sys)
throws SAXException
- Overrides:
resolveEntity in class DefaultHandler
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.