Class SQLTemplateDescriptorHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.cayenne.project.xml.SAXNestedTagHandler
org.apache.cayenne.project.xml.NamespaceAwareNestedTagHandler
org.apache.cayenne.project.xml.QueryDescriptorHandler
org.apache.cayenne.project.xml.SQLTemplateDescriptorHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
A handler of the "sqlQuery" tag of a DataMap.
- Since:
- 5.0
-
Field Summary
Fields inherited from class QueryDescriptorHandler
mapFields inherited from class NamespaceAwareNestedTagHandler
allowAllNamespaces, targetNamespaceFields inherited from class SAXNestedTagHandler
loaderContext, locator, parentHandler -
Constructor Summary
ConstructorsConstructorDescriptionSQLTemplateDescriptorHandler(NamespaceAwareNestedTagHandler parentHandler, DataMap map) -
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor of the query being read, or null before the query tag is processed.protected booleanprocessCharData(String localName, String data) protected booleanprocessElement(String namespaceURI, String localName, Attributes attributes) Main method to process XML content.Methods inherited from class QueryDescriptorHandler
beforeScopeEnd, columnNameCapitalization, intAttribute, loadQuerySettings, resolveRootMethods inherited from class NamespaceAwareNestedTagHandler
characters, createChildTagHandler, endElement, setAllowAllNamespaces, setTargetNamespace, startElementMethods inherited from class SAXNestedTagHandler
getParentHandler, setDocumentLocator, stop, unexpectedTagMessageMethods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
SQLTemplateDescriptorHandler
-
-
Method Details
-
getQueryDescriptor
Description copied from class:QueryDescriptorHandlerReturns the descriptor of the query being read, or null before the query tag is processed.- Specified by:
getQueryDescriptorin classQueryDescriptorHandler
-
processElement
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException Description copied from class:SAXNestedTagHandlerMain method to process XML content. Should be override in subclasses, by default do nothing. Return value should be true if tag was fully processed and shouldn't be passed down to child handler.- Specified by:
processElementin classNamespaceAwareNestedTagHandler- Parameters:
namespaceURI- namespace for taglocalName- tag local name (i.e. w/o namespace prefix)attributes- tag attributes- Returns:
- true if tag was processed
- Throws:
SAXException- can be thrown to abort parsing- See Also:
-
processCharData
- Overrides:
processCharDatain classNamespaceAwareNestedTagHandler
-