public class DsParser extends AbstractParser implements MetadataParser<DataSources>
Modifier and Type | Class and Description |
---|---|
static class |
DsParser.Tag
A Tag.
|
bundle, log
Constructor and Description |
---|
DsParser() |
Modifier and Type | Method and Description |
---|---|
DataSources |
parse(java.io.InputStream xmlInputStream)
Parse a -ds.xml file
|
DataSources |
parse(javax.xml.stream.XMLStreamReader reader)
Parse a -ds.xml file
|
protected DataSource |
parseDataSource(javax.xml.stream.XMLStreamReader reader)
Parse a datasource
|
protected DataSources |
parseDataSources(javax.xml.stream.XMLStreamReader reader)
Parse datasource
|
protected Driver |
parseDriver(javax.xml.stream.XMLStreamReader reader)
Parse driver
|
protected DsSecurity |
parseDsSecurity(javax.xml.stream.XMLStreamReader reader)
Parse security
|
protected DsPool |
parsePool(javax.xml.stream.XMLStreamReader reader)
parse a
CommonPool object |
protected Statement |
parseStatementSettings(javax.xml.stream.XMLStreamReader reader)
Parse statement
|
protected TimeOut |
parseTimeOutSettings(javax.xml.stream.XMLStreamReader reader)
Parse timeout
|
protected Validation |
parseValidationSetting(javax.xml.stream.XMLStreamReader reader)
Parse validation
|
protected XaDataSource |
parseXADataSource(javax.xml.stream.XMLStreamReader reader)
Parse a XA datasource
|
protected DsXaPool |
parseXaPool(javax.xml.stream.XMLStreamReader reader)
parse a
CommonXaPool object |
attributeAsBoolean, attributeAsInt, attributeAsString, elementAsBoolean, elementAsFlushStrategy, elementAsInteger, elementAsLong, elementAsString, isSystemPropertiesResolved, parseCapacity, parseConfigProperty, parseCredential, parseExtension, parseRecovery, parseSecuritySettings, parseTimeOut, parseValidation, setSystemPropertiesResolved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSystemPropertiesResolved, setSystemPropertiesResolved
public DataSources parse(java.io.InputStream xmlInputStream) throws java.lang.Exception
parse
in interface MetadataParser<DataSources>
xmlInputStream
- the input streamjava.lang.Exception
- Thrown if an error occurspublic DataSources parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception
parse
in interface MetadataParser<DataSources>
reader
- The readerjava.lang.Exception
- Thrown if an error occursprotected DataSources parseDataSources(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Driver parseDriver(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsSecurity parseDsSecurity(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Validation parseValidationSetting(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected TimeOut parseTimeOutSettings(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Statement parseStatementSettings(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsPool parsePool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
CommonPool
objectparsePool
in class AbstractParser
reader
- readerCommonPool
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected DsXaPool parseXaPool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
CommonXaPool
objectparseXaPool
in class AbstractParser
reader
- readerCommonXaPool
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected XaDataSource parseXADataSource(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- Thrown if a stream error occursParserException
- Thrown if a parser error occursValidateException
- Thrown if a validation error occursprotected DataSource parseDataSource(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- Thrown if a stream error occursParserException
- Thrown if a parser error occursValidateException
- Thrown if a validation error occursCopyright © 2014 IronJacamar (http://www.ironjacamar.org)