Package com.progress.open4gl
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 ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
get
(int propertyIndex) getChildRows
(String dataRelName) int
getGregorianCalendar
(int propertyIndex) getGregorianCalendar
(String name) getParentRow
(String dataRelName) boolean
boolean
void
void
void
setGregorianCalendar
(int propertyIndex, GregorianCalendar gc) Sets value of a GregorianCalendar property at the specified index.void
setGregorianCalendar
(String name, GregorianCalendar gc) Sets value of a GregorianCalendar property of the specified name.void
setHasRowError
(boolean hasError) protected void
protected void
void
setRowErrorString
(String errStr) 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
- Specified by:
set
in interfacecommonj.sdo.DataObject
- Overrides:
set
in classorg.apache.tuscany.sdo.impl.DataObjectImpl
-
set
- Specified by:
set
in interfacecommonj.sdo.DataObject
- Overrides:
set
in classorg.apache.tuscany.sdo.impl.DataObjectImpl
-
get
- Specified by:
get
in interfacecommonj.sdo.DataObject
- Overrides:
get
in classorg.apache.tuscany.sdo.impl.DataObjectImpl
-
get
- Specified by:
get
in interfacecommonj.sdo.DataObject
- Overrides:
get
in classorg.apache.tuscany.sdo.impl.DataObjectImpl
-
delete
public void delete()- Specified by:
delete
in interfacecommonj.sdo.DataObject
- Overrides:
delete
in classorg.apache.tuscany.sdo.impl.DataObjectImpl
-
getFieldCount
public int getFieldCount()- Returns:
- Number of properties that map to temp-table fields.
-
getTableName
- Returns:
- Table name
-
getGregorianCalendar
- Parameters:
propertyIndex
- 0-based property index- Returns:
- Value of GregorianCalendar property at the specified index.
- Throws:
ProDataException
-
getGregorianCalendar
- Parameters:
name
- Property name- Returns:
- Value of a GregorianCalendar property of the specified name.
- Throws:
ProDataException
-
setGregorianCalendar
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 indexgc
- : GregorianCalendar property to set- Throws:
ProDataException
-
setGregorianCalendar
Sets value of a GregorianCalendar property of the specified name.- Parameters:
name
- Property namegc
- GregorianCalendar property to set- Throws:
ProDataException
-
getMetaData
-
setMetaData
-
getProDataGraph
-
setProDataGraph
-
getChildRows
- Parameters:
dataRelName
- Relation name- Returns:
- List of the child ProDataObjects for the specified relation name.
- Throws:
Open4GLException
-
getParentRow
- Parameters:
dataRelName
- relation name- Returns:
- Parent ProDataObject for the specified relation name.
- Throws:
Open4GLException
-
getRowErrorString
- Returns:
- Error string for this DataObject instance (row) - returned from AppServer
-
setRowErrorString
-
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
- 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.
-