<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gvwiki.greenvulcano.com/gvwiki/index.php?action=history&amp;feed=atom&amp;title=TableRetriever</id>
	<title>TableRetriever - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gvwiki.greenvulcano.com/gvwiki/index.php?action=history&amp;feed=atom&amp;title=TableRetriever"/>
	<link rel="alternate" type="text/html" href="https://gvwiki.greenvulcano.com/gvwiki/index.php?title=TableRetriever&amp;action=history"/>
	<updated>2026-04-13T10:38:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>https://gvwiki.greenvulcano.com/gvwiki/index.php?title=TableRetriever&amp;diff=3328&amp;oldid=prev</id>
		<title>G.dimaio: Created page with &quot;==Description==  The TableRetriever element allows you to define a helper to use into the XSL transformations.  We define the functions that run SQL select and return the result ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gvwiki.greenvulcano.com/gvwiki/index.php?title=TableRetriever&amp;diff=3328&amp;oldid=prev"/>
		<updated>2012-05-22T14:19:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Description==  The TableRetriever element allows you to define a helper to use into the XSL transformations.  We define the functions that run SQL select and return the result ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Description==&lt;br /&gt;
&lt;br /&gt;
The TableRetriever element allows you to define a helper to use into the XSL transformations.&lt;br /&gt;
&lt;br /&gt;
We define the functions that run SQL select and return the result as an XML string in the following form:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;RowSet&amp;gt;&lt;br /&gt;
  &amp;lt;data&amp;gt;&lt;br /&gt;
     &amp;lt;row&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value1&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value2&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value3&amp;lt;/col&amp;gt;&lt;br /&gt;
     &amp;lt;/row&amp;gt;&lt;br /&gt;
     &amp;lt;row&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value4&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value5&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;value6&amp;lt;/col&amp;gt;&lt;br /&gt;
     &amp;lt;/row&amp;gt;&lt;br /&gt;
        ..&lt;br /&gt;
     &amp;lt;row&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;valuex&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;valuey&amp;lt;/col&amp;gt;&lt;br /&gt;
        &amp;lt;col&amp;gt;valuez&amp;lt;/col&amp;gt;&lt;br /&gt;
     &amp;lt;/row&amp;gt;&lt;br /&gt;
  &amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/RowSet&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The statement to be executed can contain metadata resolved at runtime.&lt;br /&gt;
&lt;br /&gt;
=={{GVESB}} configuration==&lt;br /&gt;
&lt;br /&gt;
TableRetriever element is used by [[Retriever_Config|RetrieverConfig]].&lt;br /&gt;
&lt;br /&gt;
The following table shows its attributes:&lt;br /&gt;
{|class=&amp;quot;gvtable&amp;quot;&lt;br /&gt;
! Attribute !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| type || fixed || retriever (unmodifiable)&lt;br /&gt;
|-&lt;br /&gt;
| class || fixed || it.greenvulcano.gvesb.datahandling.utils.TableRetriever&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Might contain the sub-elements:&lt;br /&gt;
* [[Description]]&lt;br /&gt;
* [[DataRetriever]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===An example===&lt;br /&gt;
&lt;br /&gt;
Define the following TableRetriever:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;TableRetriever class=&amp;quot;it.greenvulcano.gvesb.datahandling.utils.TableRetriever&amp;quot; type=&amp;quot;retriever&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;DataRetriever cacheable=&amp;quot;true&amp;quot; method=&amp;quot;...&amp;quot;   signature=&amp;quot;...&amp;quot;&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
        &amp;lt;/DataRetriever&amp;gt;&lt;br /&gt;
        &amp;lt;DataRetriever method=&amp;quot;...&amp;quot; signature=&amp;quot;...&amp;quot;&amp;gt;&lt;br /&gt;
             ...&lt;br /&gt;
        &amp;lt;/DataRetriever&amp;gt;&lt;br /&gt;
    &amp;lt;/TableRetriever&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be applied to the transformation:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
......&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;col&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;java:it.greenvulcano.gvesb.datahandling.utils.TableRetriever.getData('....',.....)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>G.dimaio</name></author>
		
	</entry>
</feed>