|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--bea.jolt.pool.DataSet
This class contains data elements that contain the input or output parameters of a BEA TUXEDO service. The names of the elements in the data set must match exactly the names of the parameters used in the service. To access service parameters that have multiple occurrences, both the name of the element and its index should be used.
BEA TUXEDO services expect parameters to be of certain types. The following list shows the data types accepted by a BEA TUXEDO service and the Java classes that they map to.
BEA TUXEDO Java ---------------------- char Byte short Short long Integer float Float double Double char* String CARRAY byte[]Each parameter value returned from a BEA TUXEDO service is always converted from its BEA TUXEDO data type to an instance of the corresponding Java class in the preceding list.
A parameter that is sent to a BEA TUXEDO service can either be an instance of the Java class corresponding to its BEA TUXEDO data type in the list above, or a String. If the parameter is a passed as a String, it is converted to the appropriate type for sending to the BEA TUXEDO service. Conversion is done according to the definition of the parameter in the BEA Jolt Repository. For conversion to be successful, the String must contain a meaningful value, such as "123.45" if the service parameter is a float. To pass CARRAY data as a String, represent the CARRAY (binary) data as a String of hexadecimal digits, such as "FF12EB0A".
Field Summary | |
protected boolean |
unrestricted
This flag is used by the generic service invocation. |
Constructor Summary | |
|
DataSet()
Constructs a default DataSet with an initial capacity of ten elements |
|
DataSet(int initCapacity)
Constructs a DataSet with a specified initial capacity |
protected |
DataSet(int initCapacity,
boolean importAny)
Creates an object to store the result. |
Method Summary | |
protected boolean |
expanded()
Checks if the data has been broken down into Vector. |
int |
getCount(java.lang.String name)
Gets the number of occurrences of the data element with the specified name. |
java.lang.Object |
getValue(java.lang.String name,
int index,
java.lang.Object defval)
Gets the data element associated with the specified name and index. |
java.lang.Object |
getValue(java.lang.String name,
java.lang.Object defval)
Gets the data element associated with the specified name. |
void |
setValue(java.lang.String name,
int index,
java.lang.Object value)
Sets the value of a data element associated with the specified name and index. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value of a data element associated with the specified name. |
Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
rehash,
remove,
size,
toString,
values |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected boolean unrestricted
Constructor Detail |
public DataSet()
public DataSet(int initCapacity)
initCapacity
- Initial capacityprotected DataSet(int initCapacity, boolean importAny)
initCapacity
- Initial capacityimportAny
- true to import any data; false for input param onlyMethod Detail |
public java.lang.Object getValue(java.lang.String name, int index, java.lang.Object defval)
Float balance = (Float) getValue ("BALANCE", 0, null);
name
- Name of the data elementindex
- Index of the data element, starting from 0defval
- Default value to return if the data element
does not existgetValue(java.lang.String,
java.lang.Object)
public java.lang.Object getValue(java.lang.String name, java.lang.Object defval)
name
- Name of the data elementdefval
- Default value to return if the data element does not existgetValue(java.lang.String, int,
java.lang.Object)
public void setValue(java.lang.String name, int index, java.lang.Object value)
The following code shows how to set the value of a service parameter called "ACCOUNT_ID".
This sample shows a value passed as an Integer (long in BEA TUXEDO).
DataSet dataset = new DataSet(); Integer val = new Integer(10); dataset.setValue("ACCOUNT_ID", 0, val);The value of the parameter could also be passed as a String.
DataSet dataset = new DataSet(); String val = "10"; // This is a valid integer representation dataset.setValue("ACCOUNT_ID", 0, val);
name
- Name of the data elementindex
- Occurrence index of the data element, starting from zerovalue
- Data elementsetValue(java.lang.String, java.lang.Object)
public void setValue(java.lang.String name, java.lang.Object value)
name
- Name of the data elementvalue
- String value for the data elementsetValue(java.lang.String, int, java.lang.Object)
public int getCount(java.lang.String name)
name
- Name of the data elementprotected boolean expanded()
|
Documentation is available at http://www.weblogic.com/docs51 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |