Difference between revisions of "Statement"

From GreenVulcano Wiki
Jump to: navigation, search
(ParamResolver)
Line 40: Line 40:
 
This element represents the type of a resolver to use for solving the parameters included in the statement.
 
This element represents the type of a resolver to use for solving the parameters included in the statement.
  
The ParamResolver Element is used by: [[#ParamResolver|ParamResolver]]
+
The ParamResolver Element is used by: [[#ParamResolvers|ParamResolvers]]
  
 
Might contain the sub-elements:
 
Might contain the sub-elements:
 
* [[Description]]
 
* [[Description]]
 
* [[#XPathParamResolver|XPathParamResolver]] or [[#GVBufferParamResolver|GVBufferParamResolver]]
 
* [[#XPathParamResolver|XPathParamResolver]] or [[#GVBufferParamResolver|GVBufferParamResolver]]
 +
 +
====XPathParamResolver====
 +
 +
Defines the type of Resolver based on XPath.
 +
 +
The XPathParamResolver Element is used by:  [[#ParamResolver|ParamResolver]].
 +
The following table shows its attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| type || fixed || This attribute must assume the value '''resolver'''.
 +
|-
 +
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.j2ee.db.resolver.XPathResolver'''.
 +
|}
 +
 +
Might contain the sub-elements:
 +
* [[Description]]
 +
* [[#Param|Param]]

Revision as of 08:41, 4 April 2012

Statement element contains the statement to be evaluated. Those statements might contain placeholders that will be replaced at runtime.

It is used by: DBOperations.

The Statement element has the following parameters:

Attribute Type Description
statementType required This element represents the type of statement to use.

We recommend using a CallableStatement to process stored procedures. The attribute's admitted values are:

  • CallableStatement
  • PreparedStatement

Might contain the sub-elements:

StatementValue

StatementValue contains the value of the statement to be performed.

The StatementValue Element is used by: Statement.

ParamResolvers

This element contains the list of Resolver used to resolve the parameters included in the statement.

Resolvers are applied in sequence, following the order of definition, and can be of different types.

The ParamResolvers Element is used by: Statement.

Might contain more sub-elements:

ParamResolver

This element represents the type of a resolver to use for solving the parameters included in the statement.

The ParamResolver Element is used by: ParamResolvers

Might contain the sub-elements:

XPathParamResolver

Defines the type of Resolver based on XPath.

The XPathParamResolver Element is used by: ParamResolver. The following table shows its attributes:

Attribute Type Description
type fixed This attribute must assume the value resolver.
class fixed This attribute must assume the value it.greenvulcano.gvesb.j2ee.db.resolver.XPathResolver.

Might contain the sub-elements: