About this task
To access these properties from
a
JavaCompute node, use
the
getUserDefinedAttribute(name) method, where
name is the name of the property
that you are accessing. The type of the object that is returned depends
on the type of the property that you are accessing. The object has
one of a set of types:
- MbDate
- MbTime
- MbTimestamp
- Boolean
- byte[]
- String
- Integer 32-bit values
- Long 64-bit values
- Double
- BigDecimal
- BitSet
You cannot access user-defined properties in the constructor. To access them at
initialization time, implement the following method, and use it to access the user-defined
properties.
public void onInitialize() throws MbException
{
// access the user-defined properties here
}