Klasse JdbcMetadataSourceSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.source.SourceSaxHandler
org.apache.torque.generator.configuration.source.JdbcMetadataSourceSaxHandler
- Alle implementierten Schnittstellen:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Reads jdbc metadata source definitions from the controller configuration
file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJdbcMetadataSourceSaxHandler
(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
endElement
(String uri, String localName, String rawName) Returns the configuration filled with the contents of the parsed snippet.void
startElement
(String uri, String localName, String rawName, Attributes attributes) Von Klasse geerbte Methoden org.apache.torque.generator.configuration.source.SourceSaxHandler
characters, finished, getConfigurationHandlers, getConfigurationProvider, getSourceProcessConfiguration, getUnitDescriptor, isFinished
Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.xml.sax.ContentHandler
declaration
-
Konstruktordetails
-
JdbcMetadataSourceSaxHandler
public JdbcMetadataSourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor.- Parameter:
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.- Löst aus:
NullPointerException
- if an argument is null.
-
-
Methodendetails
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException - Angegeben von:
startElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
startElement
in KlasseSourceSaxHandler
- Löst aus:
SAXException
-
endElement
- Angegeben von:
endElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
endElement
in KlasseSourceSaxHandler
- Löst aus:
SAXException
-
getSourceProvider
Returns the configuration filled with the contents of the parsed snippet.- Angegeben von:
getSourceProvider
in KlasseSourceSaxHandler
- Gibt zurück:
- the configuration which was filled, not null if a matching snippet was processed.
-