Difference between revisions of "DBOperations"
Line 3: | Line 3: | ||
It has four subelements: | It has four subelements: | ||
− | * Description | + | * Description |
− | * | + | * DataSourceConnection or JdbcConnection |
− | * [[Statement]] | + | * [[Statement]] |
− | * [[ResultSet]] | + | * [[ResultSet]] |
Line 13: | Line 13: | ||
Use this element if you want to retrieve a DataSource connection. This element represents the class of connection via Data Source for all those clients that use an application server. It has three parameters: | Use this element if you want to retrieve a DataSource connection. This element represents the class of connection via Data Source for all those clients that use an application server. It has three parameters: | ||
− | |||
− | |||
− | |||
+ | {|class="gvtable" | ||
+ | ! Attribute !! Type !! Description | ||
+ | |- | ||
+ | | type || fixed || This attribute must assume the value '''db-connection'''. | ||
+ | |- | ||
+ | | class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.j2ee.db.connections.DataSourceConnection''' | ||
+ | |- | ||
+ | | jndi-name || required || this attribute defines the DataSource JNDI name; | ||
+ | |} | ||
− | and | + | and the subelements: |
* Description; | * Description; | ||
Line 28: | Line 34: | ||
Use this element for retrieving a JDBC connection. It has three parameters: | Use this element for retrieving a JDBC connection. It has three parameters: | ||
− | + | {|class="gvtable" | |
− | + | ! Attribute !! Type !! Description | |
− | + | |- | |
+ | | type || fixed || This attribute must assume the value '''db-connection'''. | ||
+ | |- | ||
+ | | class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.j2ee.db.connections.JDBCDataBaseConnection | ||
+ | |- | ||
+ | | connectionName || required || this attribute defines the name of the connection to be used, must be one of the connections configured on the file ''GVAdapters.xml'' | ||
+ | |} |
Revision as of 13:43, 9 February 2012
The element DBOperations configures an interaction with a database.
It has four subelements:
DataSourceConnection
Use this element if you want to retrieve a DataSource connection. This element represents the class of connection via Data Source for all those clients that use an application server. It has three parameters:
Attribute | Type | Description |
---|---|---|
type | fixed | This attribute must assume the value db-connection. |
class | fixed | This attribute must assume the value it.greenvulcano.gvesb.j2ee.db.connections.DataSourceConnection |
jndi-name | required | this attribute defines the DataSource JNDI name; |
and the subelements:
- Description;
- JNDIHelper.
JDBCDataBaseConnection
Use this element for retrieving a JDBC connection. It has three parameters:
Attribute | Type | Description |
---|---|---|
type | fixed | This attribute must assume the value db-connection. |
class | fixed | This attribute must assume the value it.greenvulcano.gvesb.j2ee.db.connections.JDBCDataBaseConnection |
connectionName | required | this attribute defines the name of the connection to be used, must be one of the connections configured on the file GVAdapters.xml |