public abstract class AbstractDBMediatorFactory extends AbstractMediatorFactory
<dbreport | dblookup | .. etc> <connection> <pool> ( <driver/> <url/> <user/> <password/> | <dsName | <dsName/> <icClass/> <url/> <user/> <password/> ) <property name="name" value="value"/>* </pool> </connection> <statement> <sql>insert into table values (?, ?, ..) OR select target from destinations where src = ?</sql> <parameter (value="const" | expression="xpath") type="INTEGER|VARCHAR|..."/>* <result name="propName" column="target | number"/>* </statement>+ </dbreport | dblookup | .. etc>Supported properties for custom DataSources autocommit = true | false isolation = Connection.TRANSACTION_NONE | Connection.TRANSACTION_READ_COMMITTED | Connection.TRANSACTION_READ_UNCOMMITTED | Connection.TRANSACTION_REPEATABLE_READ | Connection.TRANSACTION_SERIALIZABLE initialsize = int maxactive = int maxidle = int maxopenstatements = int maxwait = long minidle = int poolstatements = true | false testonborrow = true | false testonreturn = true | false testwhileidle = true | false validationquery = String
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
DSNAME_Q |
static javax.xml.namespace.QName |
URL_Q |
ATT_DEFAULT_VALUE, ATT_DESCRIPTION, ATT_EVAL, ATT_EXPRN, ATT_IS_MANDATORY, ATT_KEY, ATT_NAME, ATT_ONERROR, ATT_REGEX, ATT_SEQUENCE, ATT_SOURCE, ATT_STATS, ATT_TARGET, ATT_VALUE, ATT_XPATH, DESCRIPTION_Q, FEATURE_Q, PROP_Q, PROPERTY_GROUP_Q, TARGET_Q
Constructor and Description |
---|
AbstractDBMediatorFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildDataSource(org.apache.axiom.om.OMElement elem,
AbstractDBMediator mediator)
Reads the data source configuration for all mediators based on the
AbstractDBMediator
and stores the configuration in the mediator for datasource initialization and de-serialization. |
protected java.lang.String |
getAttribute(org.apache.axiom.om.OMElement elt,
javax.xml.namespace.QName qName) |
protected java.lang.String |
getValue(org.apache.axiom.om.OMElement elt,
javax.xml.namespace.QName qName) |
protected void |
processStatements(org.apache.axiom.om.OMElement elem,
AbstractDBMediator mediator) |
addAllCommentChildrenToList, collectNameValuePairs, createMediator, createSpecificMediator, handleException, handleException, processAuditStatus, processTraceState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTagQName
public static final javax.xml.namespace.QName URL_Q
public static final javax.xml.namespace.QName DSNAME_Q
protected void buildDataSource(org.apache.axiom.om.OMElement elem, AbstractDBMediator mediator)
AbstractDBMediator
and stores the configuration in the mediator for datasource initialization and de-serialization.elem
- the configuration element of the mediatormediator
- the mediator on which the configuration shall be storedprotected void processStatements(org.apache.axiom.om.OMElement elem, AbstractDBMediator mediator)
protected java.lang.String getValue(org.apache.axiom.om.OMElement elt, javax.xml.namespace.QName qName)
protected java.lang.String getAttribute(org.apache.axiom.om.OMElement elt, javax.xml.namespace.QName qName)
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.