Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3
styleborder:1
locationtop
typeflat
separatorpipe

...

Syntax

The syntax of the DBLookup mediator changes depending on whether you connect to the database using a connection pool, or using a data source. Click on the relevant tab to view the required syntax.

Localtabgroup
Localtab
activetrue
titleConnection Pool
Code Block
XML
XML
<DBLookup>
   <connection>
      <pool>
        <driver/>
        <url/>
        
(
<user/>
        
<driver
<password/>
        
<url/>
<property name="name" value="value"/>*
      </pool>
   </connection>
   
<user/>
<statement>
      <sql>select something from table where something_else = ?</sql>
      <parameter [value="" | expression=""] type="CHAR|VARCHAR|LONGVARCHAR|NUMERIC|DECIMAL|BIT|TINYINT|SMALLINT|INTEGER|BIGINT|REAL|FLOAT|DOUBLE|DATE|TIME|TIMESTAMP"/>*
      <result 
<password/>
name="string" column="int|string"/>*
   </statement>+
</DBLookup>
Localtab
titleData source
The syntax of the DBLookup mediator further differs based on whether the connection to the database is made using an external datasource or a Carbon datasource. Click on the relevant tab to view the required syntax.
Localtabgroup
Localtab
titleExternal Datasource
Code Block
XML
XML
<DBLookup>
   <connection>
      <pool>
        <dsName/>
        <icClass/>
        <url/>
        <user/>
        <password/>
        <property name="name" value="value"/>*
      </pool>
   </connection>
   <statement>
      <sql>select something from table 
)
where something_else = ?</sql>
      <parameter [value="" | expression=""] type="CHAR|VARCHAR|LONGVARCHAR|NUMERIC|DECIMAL|BIT|TINYINT|SMALLINT|INTEGER|BIGINT|REAL|FLOAT|DOUBLE|DATE|TIME|TIMESTAMP"/>*
      
<property
<result name="
name
string" 
value
column="
value
int|string"/>*
   </statement>+
</DBLookup>
Localtab
titleCarbon Datasource
Code Block
XML
XML
<DBLookup>
   <connection>
      <pool>
        <dsName/>
      </pool>
   </connection>
   <statement>
      <sql>select something from table where something_else = ?</sql>
      <parameter [value="" | expression=""] type="CHAR|VARCHAR|LONGVARCHAR|NUMERIC|DECIMAL|BIT|TINYINT|SMALLINT|INTEGER|BIGINT|REAL|FLOAT|DOUBLE|DATE|TIME|TIMESTAMP"/>*
      <result name="string" column="int|string"/>*
   </statement>+
</DBLookup>

 

...

UI Configuration

The UI configuration of the DBLookup mediator changes depending on whether you establish the connection connect to the database using a connection pool, or using a data source. Click on the relevant tab to view the required UI configuration.

...