bea.jolt.pool.asp
Class AspDataSet

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--bea.jolt.pool.DataSet
                    |
                    +--bea.jolt.pool.asp.AspDataSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
Direct Known Subclasses:
TemplateData

public class AspDataSet
extends DataSet

This class represents the data set that can be used by template processing or service invocation to store the result set. It provides an extra method to import the server specific Request object. The keys to the hash table are the field names in the data set.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
AspDataSet()
          Default constructor to store the data set.
AspDataSet(int initCapacity)
          The constructor to store the data set with an initial capacity.
 
Method Summary
 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.
 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.
 void importRequest()
          Import the values from the Microsoft ASP Request object into this data set object.
 void setBytesValueByIndex(java.lang.String name, int index, byte[] value)
          Set the octet value of a data element associated with a name and an index.
 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.
 
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

AspDataSet

public AspDataSet()
Default constructor to store the data set. The default initial capacity is 10.

AspDataSet

public AspDataSet(int initCapacity)
The constructor to store the data set with an initial capacity.
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. The value is automatically converted to String data type.
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 field must be carray (octets). If the field is not a carray field, 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 type 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

setBytesValueByIndex

public void setBytesValueByIndex(java.lang.String name,
                                 int index,
                                 byte[] value)
Set the octet value of a data element associated with a name and an index. The data element must be defined as carray in Tuxedo.
Parameters:
name - The name of the data element
index - The index of the data element
value - The octet value for the data element

importRequest

public void importRequest()
Import the values from the Microsoft ASP Request object into this data set object.