Class AbstractDBMediatorFactory

  • All Implemented Interfaces:
    MediatorFactory
    Direct Known Subclasses:
    DBLookupMediatorFactory, DBReportMediatorFactory

    public abstract class AbstractDBMediatorFactory
    extends AbstractMediatorFactory
    Base class for factories for database related mediators.

     <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

    • Field Detail

      • URL_Q

        public static final QName URL_Q
      • DSNAME_Q

        public static final QName DSNAME_Q
    • Constructor Detail

      • AbstractDBMediatorFactory

        public AbstractDBMediatorFactory()
    • Method Detail

      • buildDataSource

        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.
        Parameters:
        elem - the configuration element of the mediator
        mediator - the mediator on which the configuration shall be stored
      • processStatements

        protected void processStatements​(org.apache.axiom.om.OMElement elem,
                                         AbstractDBMediator mediator)
      • getValue

        protected String getValue​(org.apache.axiom.om.OMElement elt,
                                  QName qName)
      • getAttribute

        protected String getAttribute​(org.apache.axiom.om.OMElement elt,
                                      QName qName)