Difference between revisions of "Retriever Config"

From GreenVulcano Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
==Description==
 +
 
The RetrieverConfig element allows you to define helper for use in DataHandler data transformations.  
 
The RetrieverConfig element allows you to define helper for use in DataHandler data transformations.  
  
 +
=={{GVESB}} Configuration==
  
 
This element does not have attributes but accepts the following children:
 
This element does not have attributes but accepts the following children:
 +
* Description
 +
* [[#GenericRetriever|GenericRetriever]]
 +
* [[#TableRetriever|TableRetriever]]
 +
* [[#JavaScriptRetriever|JavaScriptRetriever]]
 +
 +
===GenericRetriever===
  
* '''Description'''
+
This element allows you to define helper running SQL select and return the first field of the first selected record as string.
 +
It has the parameters:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || retriever (unmodifiable)
 +
|-
 +
| class || fixed || it.greenvulcano.gvesb.datahandling.utils.GenericRetriever
 +
|}
 +
and the subelements:
 +
* Description
 +
* [[DataRetriever]]
  
* '''GenericRetriever''':
 
: Allows you to define helper running SQL select and return the first field of the first selected record as string.
 
: It has two parameters:
 
:* ''type'': retriever (unmodifiable)
 
:* ''class'': it.greenvulcano.gvesb.datahandling.utils.GenericRetriever
 
: and two subelements:
 
:* Description
 
:* [[DataRetriever]]
 
  
 +
===TableRetriever===
  
* '''TableRetriever''':
+
This element allows you to define helper running SQL select and return the result as an XML string in following form:
: Allows you to define helper running SQL select and return the result as an XML string in following form:
+
<syntaxhighlight lang="XML">
<syntaxhighlight lang="XML"><?xml version="1.0" encoding="UTF-8"?>
+
<?xml version="1.0" encoding="UTF-8"?>
 
<RowSet>
 
<RowSet>
 
   <data>
 
   <data>
Line 40: Line 53:
 
</RowSet>
 
</RowSet>
 
</syntaxhighlight>
 
</syntaxhighlight>
: It has two parameters:
+
It has the parameters:
:* ''type'': retriever (unmodifiable)
+
{|class="gvtable"
:* ''class'': it.greenvulcano.gvesb.datahandling.utils.TableRetriever
+
! Attribute !! Type !! Description
: and two subelements:
+
|-
:* Description
+
| type || fixed ||  retriever (unmodifiable)
:* [[DataRetriever]]  
+
|-
 +
| class || fixed || it.greenvulcano.gvesb.datahandling.utils.TableRetriever
 +
|}
 +
and the subelements:
 +
* Description
 +
* [[DataRetriever]]  
  
 +
===JavaScriptRetriever===
  
* '''JavaScriptRetriever''':
+
It has the parameters:
: Allows you to define helper running JavaScript code and return a string.
+
{|class="gvtable"
: It has two parameters:
+
! Attribute !! Type !! Description
:* ''type'': retriever (unmodifiable)
+
|-
:* ''class'': it.greenvulcano.gvesb.datahandling.utils.JavaScriptRetriever
+
| type || fixed || retriever (unmodifiable)
: and two subelements:
+
|-
:* Description
+
| class || fixed || it.greenvulcano.gvesb.datahandling.utils.JavaScriptRetriever
:* [[DataRetriever]]
+
|}
 +
and the subelements:
 +
* Description
 +
* [[DataRetriever]]

Revision as of 10:55, 22 February 2012

Description

The RetrieverConfig element allows you to define helper for use in DataHandler data transformations.

GreenVulcano® ESB Configuration

This element does not have attributes but accepts the following children:

GenericRetriever

This element allows you to define helper running SQL select and return the first field of the first selected record as string. It has the parameters:

Attribute Type Description
type fixed retriever (unmodifiable)
class fixed it.greenvulcano.gvesb.datahandling.utils.GenericRetriever

and the subelements:


TableRetriever

This element allows you to define helper running SQL select and return the result as an XML string in following form:

<?xml version="1.0" encoding="UTF-8"?>
<RowSet>
  <data>
     <row>
        <col>value1</col>
        <col>value2</col>
        <col>value3</col>
     </row>
     <row>
        <col>value4</col>
        <col>value5</col>
        <col>value6</col>
     </row>
        ..
     <row>
        <col>valuex</col>
        <col>valuey</col>
        <col>valuez</col>
     </row>
  </data>
</RowSet>

It has the parameters:

Attribute Type Description
type fixed retriever (unmodifiable)
class fixed it.greenvulcano.gvesb.datahandling.utils.TableRetriever

and the subelements:

JavaScriptRetriever

It has the parameters:

Attribute Type Description
type fixed retriever (unmodifiable)
class fixed it.greenvulcano.gvesb.datahandling.utils.JavaScriptRetriever

and the subelements: