8. Java Interface : Java Classes : com.ca.openroad.ParameterData
 
Share this page                  
com.ca.openroad.ParameterData
The Java ParameterData class wraps a corresponding instance of the OpenROAD.ParameterData COM class. This class has the following characteristics:
All methods are synchronized and final.
All methods throw COMException, except the release method.
The default constructor takes no arguments and creates an empty underlying COM PDO with no defined attributes.
An optional convenience constructor takes a string of attribute declarations and implicitly does the declareAttr calls. The declaration string is simply a whitespace-delimited list of attrName attrType pairs. For human readability, "=" and ";" characters are also treated as whitespace.
Because Java is a strongly-typed language, the generic SetAttribute and GetAttribute methods of the COM ParameterData class are impractical. Instead, Ingres provides a collection of type-specific accessor methods.
Clients must explicitly call “release” on every OpenROAD Java object instance they create. Otherwise, the underlying COM resources may not get freed. This is why the example code shows the release calls in the "finally" block, to ensure that they will be executed even in case an exception is thrown.