Add data to a ProDataGraph
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
Once you have the ProDataGraph defined with its meta data, you can create
and add the rows to the various tables (ProDataObject lists) and generate all
the data-relation references between them to complete the ProDataGraph. You
can add data to a ProDataGraph in different ways. The following procedure
assumes that you know the ABL names of the temp-tables and fields and the field data types in
the corresponding ProDataSet.
To add data to a ProDataGraph:
-
For each row you want to add to a temp-table, create a
ProDataObjectusing the followingProDataGraphfactory method:Syntax
ProDataObject createProDataObject(String tableName)Where tableName is the temp-table name.
-
For each
ProDataObjectthat you create, add the column property data using one of the followingProDataObjectmethods, where name is the ABL name for the corresponding temp-table field:- To set the value of a single-valued property, use the following
method:
Syntax
void setDataTypeName(String name, DataType)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 data type name for the value.
- To identify the Java data type or class of the column property that maps to the ABL
data type of the temp-table field, see Map single-valued fields. For example, the following two
methods set values for an
intproperty (mapped to anINTEGERfield) and aBigDecimalproperty (mapped to aDECIMALfield):Syntax
void setInt(String name, int) void setBigDecimal(String name, java.math.BigDecimal) - To set the value of a many-valued property (which maps to a temp-table array field),
use the following method, after loading the
java.util.Listobject with the required values:Syntax
void setList(String name, java.util.List)The values in the
Listall have the data type of the column property. - To set the value of a column property in the form of the
java.lang.Objectclass, use the following method:Syntax
void set(String name, java.lang.Object)The value in the
Objecthas the data type of the column property orjava.util.Listif the property is many-valued.
You can also set the values of column properties with overloaded versions of these methods that index into the
ProDataObjectproperty list. For more information on determining the index of a column property and other information about column properties of aProDataObject, see Use Java SDO classes to access Property meta data. - To set the value of a single-valued property, use the following
method:
-
Add each
ProDataObject, dataObj, filled with data in Step 2 to theProDataGraphusing the followingProDataGraphmethod:Syntax
void addProDataObject(ProDataObject dataObj) void addProDataObject(int index, ProDataObject dataObj)This method adds the
ProDataObjectto the collection (ProDataObjectlist) identified by its defined table name. Using an index, you can insert theProDataObjectat a location in the list. Otherwise, the object is added to the end of the list. -
Once all the tables (
ProDataObjectlists) have been populated with rows of data in Step 3, generate the parent-childProDataObjectreferences specified by all theProDataRelationMetaDataobjects contained in theProDataGraphusing the followingProDataGraphmethod:Syntax
void setChildTableReferences()You can also generate these references one table at a time using overloads of this method. However, this is the most efficient method to generate data-relation references for a fully populated
ProDataGraph.