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.
-
AspResult(int)
- Create the object to store the result.
-
applicationError()
- Tests if an application error occurred in the associated service
invocation.
-
getApplicationCode()
- Gets the application code returned by the BEA TUXEDO service.
-
getBytesValueByIndex(String, int, byte[])
- Get the octet value of a data element associated with a name and an
index.
-
getError()
- Gets the system error number if a system error occurred.
-
getErrorDetail()
- Gets the detailed system error number.
-
getStringError()
- Gets the system error message.
-
getStringErrorDetail()
- Gets the detailed system error message.
-
getValueByIndex(String, int, String)
- Get the string value of a data element associated with a name and
an index.
-
noError()
- Tests if an error was encountered in the associated service
invocation.
-
setValueByIndex(String, int, String)
- Set the string value of a data element associated with a name and
an index.
-
systemError()
- Tests if a system error occurred in the associated service
invocation.
AspResult
public AspResult(int initCapacity)
- Create the object to store the result.
- Parameters:
- initCapacity - initial capacity.
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.
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.
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
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.
- Returns:
- Application return code
- Overrides:
- getApplicationCode in class Result
getStringError
public String getStringError()
- Gets the system error message.
If it is not a system error,
null is returned.
- Returns:
- The system error message
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
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