org.apache.tuscany.sdo.impl
Class ChangeSummaryImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
                  extended by org.apache.tuscany.sdo.impl.ChangeSummaryImpl
All Implemented Interfaces:
commonj.sdo.ChangeSummary, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.change.ChangeDescription, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class ChangeSummaryImpl
extends org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
implements commonj.sdo.ChangeSummary

An implementation of the model object 'EChange Summary'.

The following features are implemented:


Nested Class Summary
protected  class ChangeSummaryImpl.SDOChangeRecorder
           
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl.OldContainmentInformation
 
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 commonj.sdo.ChangeSummary
commonj.sdo.ChangeSummary.Setting
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  org.eclipse.emf.common.util.EList cachedObjectsToDetach
           
protected  java.util.HashMap cachedSDOObjectChanges
           
protected  org.eclipse.emf.ecore.change.util.ChangeRecorder changeRecorder
           
protected  java.util.Set deletedObjects
           
protected  commonj.sdo.DataGraph eDataGraph
          The cached value of the 'EData Graph' reference.
 
Fields inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
objectChanges, objectsToAttach, objectsToDetach, oldContainmentInformation, resourceChanges
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
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.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ChangeSummaryImpl()
           
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetEDataGraph(commonj.sdo.DataGraph newEDataGraph, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 void beginLogging()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void endLogging()
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.util.List getChangedDataObjects()
           
 commonj.sdo.DataGraph getDataGraph()
           
protected  java.util.Set getDeletedObjects()
           
 commonj.sdo.DataGraph getEDataGraph()
           
 org.eclipse.emf.common.util.EList getObjectsToDetach()
           
 commonj.sdo.DataObject getOldContainer(commonj.sdo.DataObject dataObject)
           
 commonj.sdo.Property getOldContainmentProperty(commonj.sdo.DataObject dataObject)
           
 commonj.sdo.Sequence getOldSequence(commonj.sdo.DataObject dataObject)
           
 commonj.sdo.ChangeSummary.Setting getOldValue(commonj.sdo.DataObject dataObject, commonj.sdo.Property property)
           
 java.util.List getOldValues(commonj.sdo.DataObject dataObject)
           
 commonj.sdo.DataObject getRootObject()
           
 boolean isCreated(commonj.sdo.DataObject dataObject)
           
 boolean isDeleted(commonj.sdo.DataObject dataObject)
           
 boolean isLogging()
           
 boolean isModified(commonj.sdo.DataObject dataObject)
           
protected  void preApply(boolean reverse)
           
 void resumeLogging()
           
 void setEDataGraph(commonj.sdo.DataGraph newEDataGraph)
           
 void summarize()
           
 void undoChanges()
           
 
Methods inherited from class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl
apply, applyAndReverse, eInverseRemove, getContainedEObjects, getObjectChanges, getObjectsToAttach, getObjectsToDetachGen, getOldContainer, getOldContainmentFeature, getOldContainmentInformation, getResourceChanges
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, 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
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

eDataGraph

protected commonj.sdo.DataGraph eDataGraph
The cached value of the 'EData Graph' reference.

See Also:
getEDataGraph()

changeRecorder

protected org.eclipse.emf.ecore.change.util.ChangeRecorder changeRecorder

cachedObjectsToDetach

protected org.eclipse.emf.common.util.EList cachedObjectsToDetach

cachedSDOObjectChanges

protected java.util.HashMap cachedSDOObjectChanges

deletedObjects

protected java.util.Set deletedObjects
Constructor Detail

ChangeSummaryImpl

protected ChangeSummaryImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

isLogging

public boolean isLogging()

Specified by:
isLogging in interface commonj.sdo.ChangeSummary

getEDataGraph

public commonj.sdo.DataGraph getEDataGraph()


basicSetEDataGraph

public org.eclipse.emf.common.notify.NotificationChain basicSetEDataGraph(commonj.sdo.DataGraph newEDataGraph,
                                                                          org.eclipse.emf.common.notify.NotificationChain msgs)


setEDataGraph

public void setEDataGraph(commonj.sdo.DataGraph newEDataGraph)


beginLogging

public void beginLogging()

Specified by:
beginLogging in interface commonj.sdo.ChangeSummary

resumeLogging

public void resumeLogging()


eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   java.lang.Class baseClass,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      java.lang.Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

endLogging

public void endLogging()

Specified by:
endLogging in interface commonj.sdo.ChangeSummary

isCreated

public boolean isCreated(commonj.sdo.DataObject dataObject)

Specified by:
isCreated in interface commonj.sdo.ChangeSummary

isDeleted

public boolean isDeleted(commonj.sdo.DataObject dataObject)

Specified by:
isDeleted in interface commonj.sdo.ChangeSummary

getOldValues

public java.util.List getOldValues(commonj.sdo.DataObject dataObject)

Specified by:
getOldValues in interface commonj.sdo.ChangeSummary

isModified

public boolean isModified(commonj.sdo.DataObject dataObject)

Specified by:
isModified in interface commonj.sdo.ChangeSummary

summarize

public void summarize()


getOldValue

public commonj.sdo.ChangeSummary.Setting getOldValue(commonj.sdo.DataObject dataObject,
                                                     commonj.sdo.Property property)
Specified by:
getOldValue in interface commonj.sdo.ChangeSummary

getOldContainer

public commonj.sdo.DataObject getOldContainer(commonj.sdo.DataObject dataObject)
Specified by:
getOldContainer in interface commonj.sdo.ChangeSummary

getOldContainmentProperty

public commonj.sdo.Property getOldContainmentProperty(commonj.sdo.DataObject dataObject)
Specified by:
getOldContainmentProperty in interface commonj.sdo.ChangeSummary

getOldSequence

public commonj.sdo.Sequence getOldSequence(commonj.sdo.DataObject dataObject)

Specified by:
getOldSequence in interface commonj.sdo.ChangeSummary

undoChanges

public void undoChanges()

Specified by:
undoChanges in interface commonj.sdo.ChangeSummary

getObjectsToDetach

public org.eclipse.emf.common.util.EList getObjectsToDetach()
Specified by:
getObjectsToDetach in interface org.eclipse.emf.ecore.change.ChangeDescription
Overrides:
getObjectsToDetach in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

getDataGraph

public commonj.sdo.DataGraph getDataGraph()

Specified by:
getDataGraph in interface commonj.sdo.ChangeSummary

preApply

protected void preApply(boolean reverse)
Overrides:
preApply in class org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl

getDeletedObjects

protected java.util.Set getDeletedObjects()

getChangedDataObjects

public java.util.List getChangedDataObjects()

Specified by:
getChangedDataObjects in interface commonj.sdo.ChangeSummary

getRootObject

public commonj.sdo.DataObject getRootObject()

Specified by:
getRootObject in interface commonj.sdo.ChangeSummary


Copyright © 2006 Apache Software Foundation. All Rights Reserved.