bea.jolt.pool.asp
Class AspResult

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--bea.jolt.pool.DataSet
                    |
                    +--bea.jolt.pool.Result
                          |
                          +--bea.jolt.pool.asp.AspResult
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class AspResult
extends Result

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

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
AspResult(int initCapacity)
          Create the object to store the result.
 
Method Summary
 boolean applicationError()
          Tests if an application error occurred in the associated service invocation.
 int getApplicationCode()
          Gets the application code returned by the BEA Tuxedo service.
 byte[] getBytesValueByIndex(java.lang.String name, int index, byte[] defval)
          Get the octet value of a data element associated with a name and an index.
 int getError()
          Gets the system error number if a system error occurred.
 int getErrorDetail()
          Gets the detailed system error number.
 java.lang.String getStringError()
          Gets the system error message.
 java.lang.String getStringErrorDetail()
          Gets the detailed system error message.
 java.lang.String getValueByIndex(java.lang.String name, int index, java.lang.String defval)
          Get the string value of a data element associated with a name and an index.
 boolean noError()
          Tests if an error was encountered in the associated service invocation.
 void setValueByIndex(java.lang.String name, int index, java.lang.String value)
          Set the string value of a data element associated with a name and an index.
 boolean systemError()
          Tests if a system error occurred in the associated service invocation.
 
Methods inherited from class bea.jolt.pool.DataSet
getCount, getValue, getValue, setValue, setValue
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AspResult

public AspResult(int initCapacity)
Create the object to store the result.
Parameters:
initCapacity - Initial capacity.
Method Detail

getValueByIndex

public java.lang.String getValueByIndex(java.lang.String name,
                                        int index,
                                        java.lang.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.

getBytesValueByIndex

public byte[] getBytesValueByIndex(java.lang.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.

setValueByIndex

public void setValueByIndex(java.lang.String name,
                            int index,
                            java.lang.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

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()

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()

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()

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

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.
Overrides:
getApplicationCode in class Result
Returns:
Application return code

getStringError

public java.lang.String getStringError()
Gets the system error message. If it is not a system error, null is returned.
Returns:
The system error message

getStringErrorDetail

public java.lang.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

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)