Class ProDataObject

java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.apache.tuscany.sdo.impl.DataObjectImpl
org.apache.tuscany.sdo.impl.DynamicDataObjectImpl
com.progress.open4gl.ProDataObject
All Implemented Interfaces:
commonj.sdo.DataObject, Serializable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject

public class ProDataObject extends org.apache.tuscany.sdo.impl.DynamicDataObjectImpl
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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl

    Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

    org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList

    Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

    org.eclipse.emf.ecore.InternalEObject.EStore
  • Field Summary

    Fields inherited from class org.apache.tuscany.sdo.impl.DynamicDataObjectImpl

    eClass, ENO_SETTINGS, eSettings

    Fields inherited from class org.apache.tuscany.sdo.impl.DataObjectImpl

    changeRecorder, eAdapters, eContainer, eContainerFeatureID, location, sequence

    Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET

    Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder

    NIL

    Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

    EOPPOSITE_FEATURE_BASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProDataObject(org.eclipse.emf.ecore.EClass eClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    get(int propertyIndex)
     
    get(String name)
     
    getChildRows(String dataRelName)
     
    int
     
    getGregorianCalendar(int propertyIndex)
     
     
     
    getParentRow(String dataRelName)
     
     
     
     
     
    boolean
     
    boolean
     
    void
    set(int propertyIndex, Object value)
     
    void
    set(String name, Object value)
     
    void
    setGregorianCalendar(int propertyIndex, GregorianCalendar gc)
    Sets value of a GregorianCalendar property at the specified index.
    void
    Sets value of a GregorianCalendar property of the specified name.
    void
    setHasRowError(boolean hasError)
     
    protected void
     
    protected void
     
    void
     

    Methods inherited from class org.apache.tuscany.sdo.impl.DynamicDataObjectImpl

    dynamicGet, dynamicSet, dynamicUnset, eClass, eDerivedStructuralFeatureID, eDynamicClass, eDynamicGet, eDynamicIsSet, eDynamicSet, eDynamicUnset, eHasSettings, eSetClass, eSettings, eStaticClass, eStaticFeatureCount

    Methods inherited from class org.apache.tuscany.sdo.impl.DataObjectImpl

    createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, detach, eAdapters, eBasicAdapters, eBasicSetContainer, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eGet, eInternalContainer, eIsProxy, eIsSet, eNotificationRequired, eNotify, eProxyURI, eSet, eSetDirectResource, eSetProxyURI, eUnset, get, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getBytes, getChangeSummary, getChar, getChar, getChar, getContainer, getContainmentProperty, getDataGraph, getDataObject, getDataObject, getDataObject, getDate, getDate, getDate, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInstanceProperties, getInstanceProperty, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getProperty, getRootObject, getSequence, getSequence, getSequence, getSequence, getShort, getShort, getShort, getString, getString, getString, getType, isSet, isSet, isSet, set, setBigDecimal, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBigInteger, setBoolean, setBoolean, setBoolean, setByte, setByte, setByte, setBytes, setBytes, setBytes, setChangeRecorder, setChar, setChar, setChar, setDataObject, setDataObject, setDataObject, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setList, setList, setList, setLong, setLong, setLong, setShort, setShort, setShort, setString, setString, setString, unset, unset, unset, writeReplace

    Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicProperties, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProperties, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString

    Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

    eSetDeliver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface commonj.sdo.DataObject

    createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, detach, get, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getBytes, getChangeSummary, getChar, getChar, getChar, getContainer, getContainmentProperty, getDataGraph, getDataObject, getDataObject, getDataObject, getDate, getDate, getDate, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInstanceProperties, getInstanceProperty, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getProperty, getRootObject, getSequence, getSequence, getSequence, getSequence, getShort, getShort, getShort, getString, getString, getString, getType, isSet, isSet, isSet, set, setBigDecimal, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBigInteger, setBoolean, setBoolean, setBoolean, setByte, setByte, setByte, setBytes, setBytes, setBytes, setChar, setChar, setChar, setDataObject, setDataObject, setDataObject, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setList, setList, setList, setLong, setLong, setLong, setShort, setShort, setShort, setString, setString, setString, unset, unset, unset

    Methods inherited from interface org.eclipse.emf.common.notify.Notifier

    eSetDeliver
  • Constructor Details

    • ProDataObject

      public ProDataObject(org.eclipse.emf.ecore.EClass eClass)
  • Method Details

    • set

      public void set(String name, Object value)
      Specified by:
      set in interface commonj.sdo.DataObject
      Overrides:
      set in class org.apache.tuscany.sdo.impl.DataObjectImpl
    • set

      public void set(int propertyIndex, Object value)
      Specified by:
      set in interface commonj.sdo.DataObject
      Overrides:
      set in class org.apache.tuscany.sdo.impl.DataObjectImpl
    • get

      public Object get(int propertyIndex)
      Specified by:
      get in interface commonj.sdo.DataObject
      Overrides:
      get in class org.apache.tuscany.sdo.impl.DataObjectImpl
    • get

      public Object get(String name)
      Specified by:
      get in interface commonj.sdo.DataObject
      Overrides:
      get in class org.apache.tuscany.sdo.impl.DataObjectImpl
    • delete

      public void delete()
      Specified by:
      delete in interface commonj.sdo.DataObject
      Overrides:
      delete in class org.apache.tuscany.sdo.impl.DataObjectImpl
    • getFieldCount

      public int getFieldCount()
      Returns:
      Number of properties that map to temp-table fields.
    • getTableName

      public String getTableName()
      Returns:
      Table name
    • getGregorianCalendar

      public 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 GregorianCalendar getGregorianCalendar(String name) throws ProDataException
      Parameters:
      name - Property name
      Returns:
      Value of a GregorianCalendar property of the specified name.
      Throws:
      ProDataException
    • setGregorianCalendar

      public void setGregorianCalendar(int propertyIndex, GregorianCalendar gc) throws ProDataException
      Sets value of a GregorianCalendar property at the specified index. We use a GregorianCalendarHolder in order to override ToString() to give a nicer formatted date string.
      Parameters:
      propertyIndex - : 0-based property index
      gc - : GregorianCalendar property to set
      Throws:
      ProDataException
    • setGregorianCalendar

      public void setGregorianCalendar(String name, GregorianCalendar gc) throws ProDataException
      Sets value of a GregorianCalendar property of the specified name.
      Parameters:
      name - Property name
      gc - GregorianCalendar property to set
      Throws:
      ProDataException
    • getMetaData

      public ProDataObjectMetaData getMetaData()
    • setMetaData

      protected void setMetaData(ProDataObjectMetaData domd)
    • getProDataGraph

      public ProDataGraph getProDataGraph()
    • setProDataGraph

      protected void setProDataGraph(ProDataGraph dg)
    • getChildRows

      public List<ProDataObject> getChildRows(String dataRelName) throws Open4GLException
      Parameters:
      dataRelName - Relation name
      Returns:
      List of the child ProDataObjects for the specified relation name.
      Throws:
      Open4GLException
    • getParentRow

      public ProDataObject getParentRow(String dataRelName) throws Open4GLException
      Parameters:
      dataRelName - relation name
      Returns:
      Parent ProDataObject for the specified relation name.
      Throws:
      Open4GLException
    • getRowErrorString

      public String getRowErrorString()
      Returns:
      Error string for this DataObject instance (row) - returned from AppServer
    • setRowErrorString

      public void setRowErrorString(String errStr)
    • hasRowError

      public boolean hasRowError()
      Returns:
      True if AppServer returned an error message for this ProDataObject row, else False.
    • setHasRowError

      public void setHasRowError(boolean hasError)
    • getTableErrorString

      public String getTableErrorString()
      Returns:
      Error string for the temp-table this DataObject is in - returned from AppServer
    • hasTableError

      public boolean hasTableError()
      Returns:
      True if AppServer returned an error message for the table of ProDataObject, else False.