Difference between revisions of "DBOCallSP"

From GreenVulcano Wiki
Jump to: navigation, search
(Created page with "==Description== The DBOCallSP element represents the DBO optimized for operations on store procedures. =={{GVESB}} configuration== [[File:DBOCallSP.jpg|thumb|DBOCallSP with Vul...")
 
({{GVESB}} configuration)
Line 11: Line 11:
  
 
Its attributes are:
 
Its attributes are:
 
+
{|class="gvtable"
* ''type'': dbo
+
! Attribute !! Type !! Description
* ''class'': it.greenvulcano.gvesb.datahandling.dbo.DBOCallSP
+
|-
* ''name''
+
| type || fixed || This attribute must assume the value '''dbo'''
* ''transformation''
+
|-
* ''force-mode'' (caller|xml2db): Force mode of the DBO, can be used in [[DBOBuilder]] whit more heterogeneous DBO. <br/> Mode:<br/> caller - inherit the mode of the caller<br/>  call - call procedure mode
+
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.datahandling.dbo.DBOCallSP'''
* ''execute-query'' (true|false): This parameter specifies is the callable statements must be executed with API CallableStatement#executeQuery(). <br/>  Default is false.
+
|-
* ''jdbc-connection-name'':  DataSource JNDI name. <br/>  Override connection defined in [[DBOBuilder]].
+
| name || required || DBOCallSP name
* ''ignore-input'' (true|false):  Tell the engine do not use the input data.
+
|-
* ''input-data'':    The default is the value of @name-Input. <br/> Can be set as the @output-data of a preceding DBO to use its output as input.
+
| transformation || optional || Transformation to be applied on the input data to obtain the internal XML commands.
* ''output-data'':  The default is the value of @name-Output.
+
|-
 +
| force-mode || required || Force mode of the DBO, can be used in [[DBOBuilder]] whit more heterogeneous DBO. <br/> Mode:<br/> caller - inherit the mode of the caller<br/>  call - call procedure mode.
 +
The attribute's admitted values are:
 +
* caller
 +
* xml2db
 +
|-
 +
| execute-query || required || This parameter specifies is the callable statements must be executed with API CallableStatement#executeQuery(). <br/>  Default is false.
 +
The attribute's admitted values are:
 +
* true
 +
* false
 +
|-
 +
| jdbc-connection-name || required || DataSource JNDI name. <br/>  Override connection defined in [[DBOBuilder]].
 +
|-
 +
| ignore-input || required || Tell the engine do not use the input data.
 +
The attribute's admitted values are:
 +
* true
 +
* false
 +
|-
 +
| input-data || required || The default is the value of @name-Input. <br/> Can be set as the @output-data of a preceding DBO to use its output as input.
 +
|-
 +
| output-data || required || The default is the value of @name-Output.
 +
|}
  
 
For example:
 
For example:

Revision as of 12:41, 12 November 2012

Description

The DBOCallSP element represents the DBO optimized for operations on store procedures.

GreenVulcano® ESB configuration

DBOCallSP with VulCon

DBOCallSP might contain the following sub-elements:

Its attributes are:

Attribute Type Description
type fixed This attribute must assume the value dbo
class fixed This attribute must assume the value it.greenvulcano.gvesb.datahandling.dbo.DBOCallSP
name required DBOCallSP name
transformation optional Transformation to be applied on the input data to obtain the internal XML commands.
force-mode required Force mode of the DBO, can be used in DBOBuilder whit more heterogeneous DBO.
Mode:
caller - inherit the mode of the caller
call - call procedure mode.

The attribute's admitted values are:

  • caller
  • xml2db
execute-query required This parameter specifies is the callable statements must be executed with API CallableStatement#executeQuery().
Default is false.

The attribute's admitted values are:

  • true
  • false
jdbc-connection-name required DataSource JNDI name.
Override connection defined in DBOBuilder.
ignore-input required Tell the engine do not use the input data.

The attribute's admitted values are:

  • true
  • false
input-data required The default is the value of @name-Input.
Can be set as the @output-data of a preceding DBO to use its output as input.
output-data required The default is the value of @name-Output.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<dh-call class="it.greenvulcano.gvesb.virtual.datahandler.DataHandlerCallOperation"
      name="TestInsertXML" type="call">
    <DBOBuilder class="it.greenvulcano.gvesb.datahandling.dbobuilder.DBOBuilder"
           isXA="true" jdbc-connection-name="ds.gv_test"
           name="TestInsertXML" transacted="true"
           type="dbobuilder">
        <DBOCallSP class="it.greenvulcano.gvesb.datahandling.dbo.DBOCallSP"
                name="InsertXML" transformation="InsertXML"
                type="dbo">
                    <CallDescriptor>
                        <statement id="0" type="callsp">begin load_xml_file(?, ?, ?); end;</statement>
                        <SPOutputParameters>
                              <SPOutputParameter db-type="number"
                                       java-type="string" position="3"
                                       prop-name="RESULT"
                                       return-in-prop="false"/>
                        </SPOutputParameters>
                    </CallDescriptor>
        </DBOCallSP>
    </DBOBuilder>
</dh-call>