Package com.progress.open4gl
Class ProDataRelationMetaData
java.lang.Object
com.progress.open4gl.dynamicapi.DataRelationMetaData
com.progress.open4gl.ProDataRelationMetaData
- All Implemented Interfaces:
Serializable
Schema info that defines the relationship between parent and child
ProDataObjects within a ProDataGraph. It maps to a DataRelation object in the
4GL DataSet. It names the fields in the parent and child ProDataObjects that
form their primary-foreign key relationship.
- See Also:
-
Field Summary
Fields inherited from class com.progress.open4gl.dynamicapi.DataRelationMetaData
m_ChildIx, m_ChildMetaData, m_ChildRef, m_ChildRefColIdx, m_ExtendedProperties, m_Flag, m_LinkName, m_NumPairs, m_PairsArray, m_PairsIdxArray, m_PairsList, m_ParentIx, m_ParentMetaData, m_ParentRef, m_ParentRefColIdx, m_ParentRows
-
Constructor Summary
ConstructorsConstructorDescriptionProDataRelationMetaData
(String linkname, int parentIx, int childIx, int numPairs, String pairsList) Creates ProDataRelationMetaData objectProDataRelationMetaData
(String linkname, int parentIx, int childIx, int numPairs, String pairsList, int flag, String extendedProperties) ProDataRelationMetaData
(String linkname, ProDataObjectMetaData parentMetaData, ProDataObjectMetaData childMetaData) Creates ProDataRelationMetaData object -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchemaInfoToClass
(commonj.sdo.Type[] typeList, ProDataGraphMetaData dgMetaData) protected void
fillChildRelations
(List<ProDataObject> parentDOList, List<ProDataObject> childDOList) int[]
protected int
protected int
protected String
protected int
int[]
protected int
protected int
protected boolean
protected void
setChildIx
(int value) void
setColumns
(int[] pColIdx, int[] cColIdx) Specifies mulitple indexes for the parent and child ProDataObjects that forms primary-foreign key relationship.void
setColumns
(int pColIdx, int cColIdx) Specifies the index for the parent ProDataObject and child ProDataObject that forms primary-foreign key relationship.protected void
setExtendedProperties
(String value) protected void
protected void
setNumPairs
(int value) protected void
setParentIx
(int value) protected void
setRelationName
(String value) protected void
writeKeyRefXML
(Document document, Element outerElement, String uniqueIndexName) protected void
writeRelationXML
(Document document, Element appInfoElement) Methods inherited from class com.progress.open4gl.dynamicapi.DataRelationMetaData
fillChildRelation, getChildFieldList, getChildRef, getChildTable, getFlag, getPair, getPair, getPairIdx, getPairsList, getParentFieldList, getParentRef, getParentTable, isReposition, setFlag, setPairsIndexInfo, setPairsList, setTableIxs, validate
-
Constructor Details
-
ProDataRelationMetaData
public ProDataRelationMetaData() -
ProDataRelationMetaData
public ProDataRelationMetaData(String linkname, ProDataObjectMetaData parentMetaData, ProDataObjectMetaData childMetaData) Creates ProDataRelationMetaData object- Parameters:
linkname
-parentMetaData
- Represents parent ProDataObjectchildMetaData
- Represents child ProDataObject
-
ProDataRelationMetaData
public ProDataRelationMetaData(String linkname, int parentIx, int childIx, int numPairs, String pairsList) Creates ProDataRelationMetaData object- Parameters:
childIx
- 0-based child table indexparentIx
- 0-based parent table indexnumPairs
- Number of column pairs that represent relationshippairsList
- Comma-separated string of all the column pairs where the parent's column name is followed by its matching child's column name.linkname
- Name of Data Relation
-
ProDataRelationMetaData
-
ProDataRelationMetaData
-
-
Method Details
-
addSchemaInfoToClass
-
setColumns
Specifies the index for the parent ProDataObject and child ProDataObject that forms primary-foreign key relationship.- Parameters:
pColIdx
- 0-based parent property indexcColIdx
- 0-based child property index- Throws:
ProDataException
-
setColumns
Specifies mulitple indexes for the parent and child ProDataObjects that forms primary-foreign key relationship.- Parameters:
pColIdx
- Array of 0-based parent property indexescColIdx
- Array of 0-based child property indexes- Throws:
ProDataException
-
getParentColumns
- Returns:
- The indexes of the parent's columns
- Throws:
ProDataException
-
getChildColumns
- Returns:
- The indexes of the child's columns
- Throws:
ProDataException
-
getNumPairs
protected int getNumPairs() -
setNumPairs
protected void setNumPairs(int value) -
hasLoadedChildren
-
setHasLoadedChildren
-
getRelationName
- Returns:
- Data Relation's name
-
setRelationName
-
getExtendedProperties
-
setExtendedProperties
-
getParentRefColIdx
protected int getParentRefColIdx() -
getChildIx
protected int getChildIx() -
setChildIx
protected void setChildIx(int value) -
getParentIx
protected int getParentIx() -
setParentIx
protected void setParentIx(int value) -
getChildRefColIdx
protected int getChildRefColIdx() -
fillChildRelations
protected void fillChildRelations(List<ProDataObject> parentDOList, List<ProDataObject> childDOList) - Overrides:
fillChildRelations
in classDataRelationMetaData
-
writeRelationXML
-
writeKeyRefXML
-