All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.pool.asp.AspResult

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----bea.jolt.pool.DataSet
                           |
                           +----bea.jolt.pool.Result
                                   |
                                   +----bea.jolt.pool.asp.AspResult

public class AspResult
extends Result
This class provides the Result set implementation for the Microsoft Active Server Pages environment.


Constructor Index

 o AspResult(int)
Create the object to store the result.

Method Index

 o applicationError()
Tests if an application error occurred in the associated service invocation.
 o getApplicationCode()
Gets the application code returned by the BEA TUXEDO service.
 o getBytesValueByIndex(String, int, byte[])
Get the octet value of a data element associated with a name and an index.
 o getError()
Gets the system error number if a system error occurred.
 o getErrorDetail()
Gets the detailed system error number.
 o getStringError()
Gets the system error message.
 o getStringErrorDetail()
Gets the detailed system error message.
 o getValueByIndex(String, int, String)
Get the string value of a data element associated with a name and an index.
 o noError()
Tests if an error was encountered in the associated service invocation.
 o setValueByIndex(String, int, String)
Set the string value of a data element associated with a name and an index.
 o systemError()
Tests if a system error occurred in the associated service invocation.

Constructors

 o AspResult
 public AspResult(int initCapacity)
Create the object to store the result.

Parameters:
initCapacity - initial capacity.

Methods

 o getValueByIndex
 public String getValueByIndex(String name,
                               int index,
                               String defval)
Get the string value of a data element associated with a name and an index. All data types are automatically converted to String.

Parameters:
name - the name of the data element
index - the index of the data element, starting from 0.
defval - the default value if the data element does not exist.
Returns:
the string value of the data element or the default value.
 o getBytesValueByIndex
 public byte[] getBytesValueByIndex(String name,
                                    int index,
                                    byte defval[])
Get the octet value of a data element associated with a name and an index. The data type of this data element must been carray (octets) in TUXEDO. If the data type of this data element is not carray, the default value will be returned.

Parameters:
name - the name of the data element
index - the index of the data element, starting from 0.
defval - the default value if the data element does not exist.
Returns:
the octet value of the data element or the default value.
 o setValueByIndex
 public void setValueByIndex(String name,
                             int index,
                             String value)
Set the string value of a data element associated with a name and an index. The value will be automatically converted to the proper data format according to the service definition.

Parameters:
name - the name of the data element
index - the index of the data element
value - the string value for the data element
 o noError
 public boolean noError()
Tests if an error was encountered in the associated service invocation. This method, applicationError() and systemError() are mutually exclusive.

Returns:
true if there is no error
See Also:
applicationError, systemError
 o applicationError
 public boolean applicationError()
Tests if an application error occurred in the associated service invocation. The application error is equivalent to a TPESVCFAIL in a BEA TUXEDO system. This method, noError() and systemError() are mutually exclusive.

Returns:
true if an application error occurred
See Also:
noError, systemError
 o systemError
 public boolean systemError()
Tests if a system error occurred in the associated service invocation. This method, applicationError() and noError() are mutually exclusive.

Returns:
true if a system error occurred
See Also:
applicationError, noError
 o getError
 public int getError()
Gets the system error number if a system error occurred. This error number is the same as the tperrno returned after a BEA TUXEDO call.

Returns:
System error number
 o getApplicationCode
 public int getApplicationCode()
Gets the application code returned by the BEA TUXEDO service. The application code is the same as the tpurcode returned by a BEA TUXEDO service.

Returns:
Application return code
Overrides:
getApplicationCode in class Result
 o getStringError
 public String getStringError()
Gets the system error message. If it is not a system error, null is returned.

Returns:
The system error message
 o getStringErrorDetail
 public String getStringErrorDetail()
Gets the detailed system error message. This detailed information is only available starting with BEA TUXEDO 6.4 systems for a limited set of system errors.

Returns:
the detailed system error message or null
 o getErrorDetail
 public int getErrorDetail()
Gets the detailed system error number. This detailed information is only available starting with BEA TUXEDO 6.4 systems for a limited set of system errors.

Returns:
the detailed system error number or 0 (zero)

All Packages  Class Hierarchy  This Package  Previous  Next  Index