beautypg.com

Result object, Transaction object, Transaction methods – HP NonStop G-Series User Manual

Page 307: Commit, Rollback

background image

Transaction Object

This object is a wrapper for the bea.jolt.JoltTransaction object. If an error occurs, the method in
this object returns an error code instead of throwing an exception. This object is returned by the
startTransaction method or the SessionPool object.

Transaction Methods

The following methods are used in conjunction with the Transaction object:

commit

rollback

commit

int commit()

Returns 0 if successful; otherwise, a TUXEDO error number.

Usage Commit the transaction.

rollback

int rollback()

Returns 0 if successful; otherwise, a TUXEDO error number.

Usage Roll back the transaction.

Result Object

This object represents the result set from the service invocation. Most output data types are
converted into String, except carray which remains as byte[]. The caller must use the
getBytesValue() methods to get the carray data. The keys the data in the Result object are the
field names in the result set. Since this object is derived from the TemplateData object, it can be
used by the Template object for template processing. This object is returned from the call()
method or the SessionPool object.