Flags for setValue methods

This entry is part of the Maximo Java Development series.

The Mbo class exposes a lot of setValue methods but we can categorize them in two big groups. The first group accepts only two arguments that are the name of the attribute to be set and its value. The second group of methods have three arguments that allows to pass an additional accessModifier flag.
The values that can be passed into this flag are defined in the MboConstants interface and Mbo class. The most important values are the following:

Those values can be 'merged' using the Java bitwise OR operator "|". For example, if you want to suppress the validation and action you can use the NOVALIDATION|NOACTION constant.

Labels: , ,