Server Reference Guide : Java Interface : Datatype Conversions
 
Share this page          
Datatype Conversions
The COM PDO supports a subset of types that can be contained in a COM VARIANT. For the Java interface, these types must be translated to and from suitable Java types.
The Java PDO (com.ca.openroad.ParameterData object) provides a variety of type-specific get and set methods (getInteger, getDouble, getString, and so on) that return or receive Java values of the specified type. This style is consistent with typical Java APIs.
The Java PDO implements a permissive approach to data conversions. It always attempts to convert between the Java type specified in the get and set method and the VARIANT type required by the PDO's attribute declaration. If the VariantChangeType COM API function fails, for whatever reason, a conversion error is reported. Always use the get or set method that is the best match for the type of the particular PDO attribute being accessed.