com.progress.open4gl
Class ProDataGraphMetaData

java.lang.Object
  extended bycom.progress.open4gl.dynamicapi.MetaDataBase
      extended bycom.progress.open4gl.dynamicapi.DataGraphMetaData
          extended bycom.progress.open4gl.ProDataGraphMetaData
All Implemented Interfaces:
java.io.Serializable

public class ProDataGraphMetaData
extends com.progress.open4gl.dynamicapi.DataGraphMetaData

Allows the client to access as well as specify schema for a ProDataGraph that describes a 4GL ProDataSet.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.progress.open4gl.dynamicapi.DataGraphMetaData
m_CodePage, m_domdi, m_drmd, m_ExtendedProperties, m_Flag, m_InOut, m_ParmNum, m_ProDataGraphName, m_TableCount, m_tableNames, m_uniqueId, m_XMLNamespace, m_XMLPrefix
 
Constructor Summary
ProDataGraphMetaData(DataGraph dg, java.lang.String dgName, ProDataRelationMetaData[] dataRelList)
           
ProDataGraphMetaData(int id)
           
ProDataGraphMetaData(int id, java.lang.String dataGraphName, int parmNum, int inOut)
           
ProDataGraphMetaData(ProDataGraphMetaData mdata)
           
ProDataGraphMetaData(java.lang.String dataGraphName)
          Creates a ProDataGraphMetaData.
 
Method Summary
 void addDataRelation(ProDataRelationMetaData drmd)
          Adds a ProDataRelationMetaData definition to the ProDataGraphMetaData object.
 void addTable(ProDataObjectMetaData doMetaData)
          Adds the schema definition of a ProDataObject (temp-table) to the ProDataGraphMetaData object.
 int getNumRelations()
           
 int getNumTables()
           
 ProDataRelationMetaData getRelationMetaData(int idx)
           
 ProDataRelationMetaData getRelationMetaData(java.lang.String dataRelName)
           
 int getTableIndex(java.lang.String tableName)
           
 java.lang.String[] getTableNames()
           
protected  boolean hasError()
           
protected  void setIndexInfo()
           
 
Methods inherited from class com.progress.open4gl.dynamicapi.DataGraphMetaData
getCodePage, getExtendedProperties, getFlag, getInOut, getParmNum, getProDataGraphMetaData, getProDataGraphName, getProDataObjectMetaDataIndicator, getTableMetaData, getXMLNamespace, getXMLPrefix, setCodePage, setExtendedProperties, setFlag, setInOut, setParmNum, setProDataGraphName, setProDataObjectMetaDataIndicator, setProDataRelationMetaData, setXMLNamespace, setXMLPrefix, validate
 
Methods inherited from class com.progress.open4gl.dynamicapi.MetaDataBase
getTypeCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProDataGraphMetaData

public ProDataGraphMetaData(DataGraph dg,
                            java.lang.String dgName,
                            ProDataRelationMetaData[] dataRelList)
                     throws ProDataException,
                            Open4GLException

ProDataGraphMetaData

public ProDataGraphMetaData(int id)

ProDataGraphMetaData

public ProDataGraphMetaData(int id,
                            java.lang.String dataGraphName,
                            int parmNum,
                            int inOut)

ProDataGraphMetaData

public ProDataGraphMetaData(ProDataGraphMetaData mdata)

ProDataGraphMetaData

public ProDataGraphMetaData(java.lang.String dataGraphName)
Creates a ProDataGraphMetaData.

Parameters:
dataGraphName -
Method Detail

addDataRelation

public void addDataRelation(ProDataRelationMetaData drmd)
Adds a ProDataRelationMetaData definition to the ProDataGraphMetaData object.

Parameters:
drmd - Describes parent-child relationship for 2 ProDataObjects within the ProDataGraph

addTable

public void addTable(ProDataObjectMetaData doMetaData)
Adds the schema definition of a ProDataObject (temp-table) to the ProDataGraphMetaData object.

Parameters:
doMetaData - metadata for a ProDataObject

getNumRelations

public int getNumRelations()
Returns:
Number of ProDataRelationMetaData objects in this ProDataGraphMetaData object.

getNumTables

public int getNumTables()
Returns:
Number of tables (or ProDataObjectMetaData) in this ProDataGraphMetaData object.

getRelationMetaData

public ProDataRelationMetaData getRelationMetaData(int idx)
Parameters:
idx - 0-based index into data relation list
Returns:
ProDataRelationMetaData object of specified data relation

getRelationMetaData

public ProDataRelationMetaData getRelationMetaData(java.lang.String dataRelName)
Parameters:
dataRelName - Name of ProDataRelationMetaData object
Returns:
ProDataRelationMetaData object of specified data relation

getTableIndex

public int getTableIndex(java.lang.String tableName)
                  throws Open4GLException
Throws:
Open4GLException

getTableNames

public java.lang.String[] getTableNames()
Returns:
String array of the table names of each ProDataObjectMetaData in this ProDataGraphMetaData object.

hasError

protected boolean hasError()

setIndexInfo

protected void setIndexInfo()
                     throws ProDataException
Throws:
ProDataException