Previous Topic: Unique Attribute PropertiesNext Topic: Date, Time, and Timestamp Properties


Special String Methods

Each of the three attribute properties (short,integer, or double) has two set methods: setXXX(type) is the standard set method and setAsStringXXX(stringvalue).

This additional set method lets you assign the value from a text field into a Bean property without first doing a conversion. The CA Gen Java runtime does the conversion for you and returns a PropertyVetoException if the string cannot be parsed as a valid number of the type expected.

These special String methods provide 6 digit sub second support (microsecond precision). The standard methods only provide 3 digit sub second support (millisecond precision).