|
|
(One intermediate revision by one other user not shown) |
Line 7: |
Line 7: |
| This element does not have attributes but accepts the following children: | | This element does not have attributes but accepts the following children: |
| * [[Description]] | | * [[Description]] |
− | * [[#GenericRetriever|GenericRetriever]] | + | * [[GenericRetriever]] |
− | * [[#TableRetriever|TableRetriever]]
| + | * [[TableRetriever]] |
− | * [[#JavaScriptRetriever|JavaScriptRetriever]]
| + | * [[JavaScriptRetriever]] |
− | | |
− | ===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:
| |
− | {|class="gvtable"
| |
− | ! Attribute !! Type !! Description
| |
− | |-
| |
− | | type || fixed || retriever (unmodifiable)
| |
− | |-
| |
− | | class || fixed || it.greenvulcano.gvesb.datahandling.utils.GenericRetriever
| |
− | |}
| |
− | and the subelements:
| |
− | * [[Description]]
| |
− | * [[DataRetriever]] | |
− | | |
− | | |
− | ===TableRetriever===
| |
− | | |
− | This element allows you to define helper running SQL select and return the result as an XML string in the following form:
| |
− | <syntaxhighlight lang="XML">
| |
− | <?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>
| |
− | </syntaxhighlight>
| |
− | | |
− | The statement to be executed might contain metadata resolved at runtime.
| |
− | | |
− | The following table shows TableRetriever element's attributes:
| |
− | {|class="gvtable"
| |
− | ! Attribute !! Type !! Description
| |
− | |-
| |
− | | type || fixed || retriever (unmodifiable)
| |
− | |-
| |
− | | class || fixed || it.greenvulcano.gvesb.datahandling.utils.TableRetriever
| |
− | |}
| |
− | | |
− | Might contain the sub-elements:
| |
− | * [[Description]]
| |
− | * [[DataRetriever]] | |
− | | |
− | ===JavaScriptRetriever===
| |
− | | |
− | It has the parameters:
| |
− | {|class="gvtable"
| |
− | ! Attribute !! Type !! Description
| |
− | |-
| |
− | | type || fixed || retriever (unmodifiable)
| |
− | |-
| |
− | | class || fixed || it.greenvulcano.gvesb.datahandling.utils.JavaScriptRetriever
| |
− | |}
| |
− | and the subelements:
| |
− | * [[Description]]
| |
− | * [[DataRetriever]]
| |