Difference between revisions of "DBOBuilder"

From GreenVulcano Wiki
Jump to: navigation, search
Line 3: Line 3:
 
It has the following attributes:
 
It has the following attributes:
  
* type: dbobuilder;
+
* ''type'': dbobuilder;
* class: it.greenvulcano.gvesb.datahandling.dbobuilder.DBOBuilder;
+
* ''class'': it.greenvulcano.gvesb.datahandling.dbobuilder.DBOBuilder;
* name: Service name;
+
* ''name'': Service name;
* jdbc-connection-name: DataSource JNDI name;
+
* ''jdbc-connection-name'': DataSource JNDI name;
* transacted (false|true): Defines if the services must be executed in transaction.  Default true.
+
* ''transacted'' (false|true): Defines if the services must be executed in transaction.  Default true.
* isXA (true|false): If the service is transacted, this attributes indicates if it participates in a distributed transaction or not. <br/> If ''false'' the DataHandler handle a local transaction. <br/> Default false;
+
* ''isXA'' (true|false): If the service is transacted, this attributes indicates if it participates in a distributed transaction or not. <br/> If ''false'' the DataHandler handle a local transaction. <br/> Default false;
* output-data: The default is the value of @output-data of the last DBOxxx;
+
* ''output-data'': The default is the value of @output-data of the last DBOxxx;
* make-dump (none|text|hex): If set to ''none'' not perform the input/output data dump. <br/> If set to ''text'' or ''hex'' then the dump is performed as text or hexadecimal string. <br/> Default to ''text''.
+
* ''make-dump'' (none|text|hex): If set to ''none'' not perform the input/output data dump. <br/> If set to ''text'' or ''hex'' then the dump is performed as text or hexadecimal string. <br/> Default to ''text''.
  
  
Line 33: Line 33:
 
** DHVariable: Default value for DataHandler service's variable including the parameters
 
** DHVariable: Default value for DataHandler service's variable including the parameters
 
*** Description
 
*** Description
*** name: variable name
+
*** ''name'': variable name
*** value: variable value
+
*** ''value'': variable value
  
 
* [[dbo_types]]: among these the DBOSelect as has been seen previously.
 
* [[dbo_types]]: among these the DBOSelect as has been seen previously.

Revision as of 10:26, 26 January 2012

DBOBuilder: DataHandler service.

It has the following attributes:

  • type: dbobuilder;
  • class: it.greenvulcano.gvesb.datahandling.dbobuilder.DBOBuilder;
  • name: Service name;
  • jdbc-connection-name: DataSource JNDI name;
  • transacted (false|true): Defines if the services must be executed in transaction. Default true.
  • isXA (true|false): If the service is transacted, this attributes indicates if it participates in a distributed transaction or not.
    If false the DataHandler handle a local transaction.
    Default false;
  • output-data: The default is the value of @output-data of the last DBOxxx;
  • make-dump (none|text|hex): If set to none not perform the input/output data dump.
    If set to text or hex then the dump is performed as text or hexadecimal string.
    Default to text.


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" jdbc-connection-name="" name="" type="dbobuilder">
      <DBOSelect class="it.greenvulcano.gvesb.datahandling.dbo.DBOSelect" name="" type="dbo">
          <statement type="select"/>
      </DBOSelect>
  </DBOBuilder>
</dh-call>

DBOBuilder accepts as children:

  • Description;
  • DHAliasList: List of aliases for a given DataHandler service. It contains
    • DHAlias: Alias for a DataHandler service with its Description;
  • DHVariables: List of default values for DataHandler service's variables. It contains
    • DHVariable: Default value for DataHandler service's variable including the parameters
      • Description
      • name: variable name
      • value: variable value
  • dbo_types: among these the DBOSelect as has been seen previously.