IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Bean collection recommended methods

The following table describes the recommended methods of the bean collection:
Table 1. Bean collection recommended methods
Recommended method Description
setValueAt(String name, Object value) Set an object as value to the element located by the composite key. Throws an exception when the element does not exist.
trySetValueAt(String aName,Object aValue) Set an object as value to the element located by the composite key. Return null when the element does not exist.
getValueAt(String aCompositeKey) Get the value of the element located by the composite key. Throws an exception when the element does not exist.
tryGetValueAt(String aCompositeKey) Get the value of the element located by the composite key. Return null when the element does not exist.
getElementAt(String name) Get an object with value of the element located by the composite key. Throws an exception when the element does not exist.
tryGetElementAt(String aName) Get an object with value of the element located by the composite key. Returns null when the element does not exist.
clone() Deep clone the nested data elements of the bean collection.


Feedback