8. Java Interface : Java Classes : com.ca.openroad.ParameterData : Java ParameterData Accessor Methods
 
Share this page                  
Java ParameterData Accessor Methods
All the Java ParameterData accessor methods attempt to convert between the method signature type and the declared type of the specified ParameterData attribute. Despite this, we recommend that attributes be accessed using the Java method that is a best match for the declared attribute. For example, we recommend the following pairings:
ATTRTYPE
Recommended Accessor Methods
STRING
getString/setString
INTEGER
getInt/setInt (or getInteger/setInteger)
SMALLINT
getInt/setInt (or getInteger/setInteger)
FLOAT
getDbl/setDbl (or getDouble/setDouble)
DECIMAL
getBigDecimal/setBigDecimal
MONEY
getBigDecimal/setBigDecimal
DATE
getDate/setDate/setDateWithoutTime
BINARY
getByteArray/setByteArray
Note:   
ParameterData data values, except for primitive integer or double scalars, are represented in Java as Java object instances. For example, String, Integer, Double, Date, BigDecimal, and Byte array.
Null object references correspond to NULL 4GL data values.
You can use the null object references as a convenient alternative to the setNull and isNull methods.
The full range of Ingres MONEY values (-999,999,999,999,999 to +999,999,999,999.99) is supported.
The maximum precision and scale of the COM DECIMAL type is 28. Therefore, although the Ingres DECIMAL type supports up to 31 digits of precision or scale, only 28 digits can be used effectively.