Try OpenEdge Now
skip to main content
Java Open Clients
Accessing ABL ProDataSets : ProDataRelationMetaData class : Methods : setColumns( )
 
setColumns( )
Specifies the column properties that are to participate in primary-foreign key relationships between the parent and child tables of this ProDataRelationMetaData object, as specified by the overloaded methods.

Syntax

void setColumns(int parentColIdx, int childColIdx)
void setColumns(int[] parentColIdxs, int[] childColIdxs)
parentColIdx
Specifies the 0-based index of a single column property in the parent ProDataObject type to use as the primary key.
childColIdx
Specifies the 0-based index of a single column property in the child ProDataObject type to use as the foreign key.
parentColIdxs
Specifies an array of 0-based indexes to column properties in the parent ProDataObject type to use as the primary key.
childColIdxs
Specifies an array of 0-based indexes to column properties in the child ProDataObject type to use as the foreign key.

Note

When specifying parentColIdxs and childColIdxs, the arrays must be the same length. For either overloading, the corresponding parent and child column properties must be comparable.