Class JdbcMetadataSourceSaxHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.torque.generator.configuration.source.SourceSaxHandler
-
- org.apache.torque.generator.configuration.source.JdbcMetadataSourceSaxHandler
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class JdbcMetadataSourceSaxHandler extends SourceSaxHandler
Reads jdbc metadata source definitions from the controller configuration file.
-
-
Constructor Summary
Constructors Constructor Description JdbcMetadataSourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)Constructor.
-
Method Summary
Modifier and Type Method Description voidendElement(String uri, String localName, String rawName)SourceProvidergetSourceProvider()Returns the configuration filled with the contents of the parsed snippet.voidstartElement(String uri, String localName, String rawName, Attributes attributes)-
Methods inherited from class org.apache.torque.generator.configuration.source.SourceSaxHandler
characters, finished, getConfigurationHandlers, getConfigurationProvider, getSourceProcessConfiguration, getUnitDescriptor, isFinished
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
JdbcMetadataSourceSaxHandler
public JdbcMetadataSourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)
Constructor.- Parameters:
configurationProvider- The access object for the configuration files, not null.unitDescriptor- The description of the generation unit, not null.configurationHandlers- All known configuration handlers, not null.- Throws:
NullPointerException- if an argument is null.
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classSourceSaxHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String rawName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classSourceSaxHandler- Throws:
SAXException
-
getSourceProvider
public SourceProvider getSourceProvider()
Returns the configuration filled with the contents of the parsed snippet.- Specified by:
getSourceProviderin classSourceSaxHandler- Returns:
- the configuration which was filled, not null if a matching snippet was processed.
-
-