beautypg.com

Jolttransaction class, Delete, Deleteitem – HP NonStop G-Series User Manual

Page 124

background image

Throws

java.lang.IllegalAccessError.

(field name) Attempt to add a value to an input parameter field, or delete a value from an input parameter field.

java.lang.NoSuchFieldError.

(field name) Attempt to add or delete a field that is not defined for this service.

delete

Deletes a first occurrence of the named item or any existing item.

void delete( String name );

Usage This method deletes the first named item. The named item must be one of the input parameters.

Throws

java.lang.IllegalAccessError.

(field name) Attempt to add a value to an input parameter field, or delete a value from an input parameter field.

java.lang.NoSuchFieldError.

(field name) Attempt to add or delete a field that is not defined for this service.

deleteItem

Deletes an occurrence of an existing named item.

void deleteItem( String name, int itemNo );

Usage This method deletes an existing named item (input parameter). If the item does not exist, an exception will be
thrown. The deleteItem method without the itemNo parameter is equivalent to delete methods with itemNo 0 (i.e., first
occurrence).

Throws

java.lang.IllegalAccessError.

(field name) Attempt to add a value to an input parameter field, or delete a value from an input parameter field.

java.lang.NoSuchFieldError.

(field name) Attempt to add or delete a field that is not defined for this service.

JoltTransaction Class

java.lang.Object
|
+----bea.jolt.Transaction
|
+----bea.jolt.JoltTransaction

The JoltTransaction class is the explicit transaction model for Jolt. The JoltTransaction class implements the transaction
object. This object can be used by JoltRemoteService to include several services into a single transaction. When a
transaction is timed out, the user must rollback the transaction immediately. Due to the current implementation of
TUXEDO, only one transaction object can be instantiated at one time.

Refer also to the JoltRemoteService and JoltSession classes.