1. Return the ProDataObject list from the ProDataGraph that maps to a specified temp-table using the following ProDataGraph method, where tableName is the ABL name of the temp-table:
2. Iterate through the ProDataObject list returned in Step 1 and locate a ProDataObject instance that contains data that you want.
3. Use the appropriate ProDataObject property access methods to return the values of specified column properties of the ProDataObject found in Step 2, where propertyIndex is the index into the ProDataObject column property list, and name is the ABL name of the temp-table field that the property maps to.
Note: For more information on determining the propertyIndex of a column property and other information about column properties of a ProDataObject, see the Using Java SDO classes to access Property meta data.
To return the value of a specified single-valued column property in the form of the Property data type, use one of the following ProDataObject methods:
Where DataType is the full Java classname or intrinsic type name of the property data type and DataTypeName is a name that closely matches the name of the data type that the method returns:
To identify the Java intrinsic data type or class of the column property that maps to the ABL data type of the temp-table field, see Mappingsingle-valued fields. For example, the following two methods return values for an int property (mapped to an INTEGER field) and a BigDecimal property (mapped to a DECIMAL field):
int getInt(String name)
java.math.BigDecimal getBigDecimal(String name)
To return the value of a specified many-valued property (which maps to a temp-table array field), use one of the following ProDataObject methods:
The method returns a list of child rows (ProDataObject instances) for this parent ProDataObject according to the data-relation specified by name (relationName). Iterate through the list to locate a ProDataObject that you want to access.
To return a parent row for the specified ProDataObject, use the following ProDataObject method:
The method returns a parent ProDataObject for this child ProDataObject according to the data-relation specified by name (relationName).
For a ProDataGraph, the relationName identifies a DATA-RELATION defined in the corresponding ProDataSet parameter of the application service, and this name is identical to the ABL name of the specified DATA-RELATION.
Once you have a child or parent ProDataObject, you can continue with Step 3 to access its data.