ipreparedcomponent_hql_shareconn.xaction 2.29 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <title>Test HQL IPreparedComponent Share Connection</title>
  <version>1</version>
  <logging-level>ERROR</logging-level>
  <documentation> 
    <author/>  
    <description>Test HQL IPreparedComponent interface share connection functionality</description>  
    <help/>  
  </documentation>

  <inputs> 
    <mimetype type="string"> 
      <sources> 
        <request>mimetype</request> 
      </sources>  
      <default-value>text/html</default-value>
    </mimetype>  
  </inputs>

  <outputs> 
    <prepared_component type="prepared_component"/> 
  </outputs>

  <resources> 
    <hibernateConfig> 
      <solution-file> 
        <location>HQL_Datasource.cfg.xml</location>  
        <mime-type>text/xml</mime-type> 
      </solution-file> 
    </hibernateConfig> 
  </resources>

  <actions>

    <action-definition> 
      <component-name>HQLLookupRule</component-name>
      <action-type>HQL Get Connection</action-type>
      <hibernateConfig> 
        <catalog type="resource"/> 
      </hibernateConfig>
      <action-inputs>
         <mimetype/>
      </action-inputs>
      <action-outputs> 
        <prepared_component mapping="conn"/> 
      </action-outputs>
      <component-definition> 
        <classNames>org.pentaho.repository.content.ContentItem, org.pentaho.repository.content.ContentItemFile, org.pentaho.repository.content.ContentLocation, org.pentaho.repository.runtime.RuntimeElement</classNames>
      </component-definition>
    </action-definition>
 
    <action-definition>
      <component-name>HQLLookupRule</component-name>
      <action-type>HQL Prepared Component Test</action-type>
      <action-inputs>
         <prepared_component mapping="conn"/>
      </action-inputs>
      <action-outputs> 
        <prepared_component/>
      </action-outputs>
      <component-definition>
        <classNames>org.pentaho.repository.content.ContentItem, org.pentaho.repository.content.ContentItemFile, org.pentaho.repository.content.ContentLocation, org.pentaho.repository.runtime.RuntimeElement</classNames>
        <query><![CDATA[select name as Name, path as Path, title as Title, mimeType as mimeType, id as Id from ContentItem where mimeType = '{mimetype}']]></query>
      </component-definition>
    </action-definition>
 
  </actions> 
</action-sequence>