com.progress.open4gl
Class ProDataObject
java.lang.Object
DynamicEDataObjectImpl
com.progress.open4gl.ProDataObject
- public class ProDataObject
- extends DynamicEDataObjectImpl
Represents a temp-table row with a ProDataGraph object.
(The ProDataObject list in the ProDataGraph maps to the entire 4GL temp-table).
It contains a ProDataObjectMetaData object which contains the schema info for the corresponding temp-table.
It implements the Java SDO DataObject interface.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProDataObject
public ProDataObject(EClass eClass)
addFieldSchemaInfo
protected static void addFieldSchemaInfo(EReference ttReference,
EClass ttClass,
EClass[] ttClassList,
ProDataGraphMetaData dgMetaData,
ProDataObjectMetaData doMetaData)
throws ProDataException
- Throws:
ProDataException
getChildRows
public java.util.List getChildRows(java.lang.String dataRelName)
throws Open4GLException
- Parameters:
dataRelName
- Relation name
- Returns:
- List of the child ProDataObjects for the specified relation name.
- Throws:
Open4GLException
getFieldCount
public int getFieldCount()
- Returns:
- Number of properties that map to temp-table fields.
getGregorianCalendar
public java.util.GregorianCalendar getGregorianCalendar(int propertyIndex)
throws ProDataException
- Parameters:
propertyIndex
- 0-based property index
- Returns:
- Value of GregorianCalendar property at the specified index.
- Throws:
ProDataException
getGregorianCalendar
public java.util.GregorianCalendar getGregorianCalendar(java.lang.String name)
throws ProDataException
- Parameters:
name
- Property name
- Returns:
- Value of a GregorianCalendar property of the specified name.
- Throws:
ProDataException
getMetaData
public ProDataObjectMetaData getMetaData()
getParentRow
public ProDataObject getParentRow(java.lang.String dataRelName)
throws Open4GLException
- Parameters:
dataRelName
- relation name
- Returns:
- Parent ProDataObject for the specified relation name.
- Throws:
Open4GLException
getRowErrorString
public java.lang.String getRowErrorString()
- Returns:
- Error string for this DataObject instance (row) - returned from AppServer
getTableErrorString
public java.lang.String getTableErrorString()
- Returns:
- Error string for the temp-table this DataObject is in - returned from AppServer
getTableName
public java.lang.String getTableName()
- Returns:
- Table name
hasRowError
public boolean hasRowError()
- Returns:
- True if AppServer returned an error message for this ProDataObject row, else False.
hasTableError
public boolean hasTableError()
- Returns:
- True if AppServer returned an error message for the table of ProDataObject, else False.
setGregorianCalendar
public void setGregorianCalendar(int propertyIndex,
java.util.GregorianCalendar gc)
throws ProDataException
- Sets value of a GregorianCalendar property at the specified index.
- Parameters:
propertyIndex
- 0-based property indexgc
- GregorianCalendar property to set
- Throws:
ProDataException
setGregorianCalendar
public void setGregorianCalendar(java.lang.String name,
java.util.GregorianCalendar gc)
throws ProDataException
- Sets value of a GregorianCalendar property of the specified name.
- Parameters:
name
- Property namegc
- GregorianCalendar property to set
- Throws:
ProDataException
setHasRowError
public void setHasRowError(boolean hasError)
setMetaData
protected void setMetaData(ProDataObjectMetaData domd)
setRowErrorString
public void setRowErrorString(java.lang.String errStr)