beautypg.com

Result class, Result methods, Applicationerror – HP NonStop G-Series User Manual

Page 290

background image

Result Class

java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----bea.web.TemplateData
|
+----bea.web.Result

This class 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 to the hash table are the field names
in the result set. Since this class is derived from the TemplateData class, it can be used by the
Template class for template processing.

Result Methods

The following methods are used in conjunction with the Result class:

applicationError

getApplicationCode

getError

getErrorDetail

getStringError

getStringErrorDetail

noError

systemError

applicationError

boolean applicationError()

Returns True if an application error occurred; false otherwise.

Usage Test if an application error occurred in the last service invocation. The application error
is equivalent to TPESVCFAIL in TUXEDO.