Package org.eclipse.emf.spi.cdo
Class AbstractObjectConflictResolver
- java.lang.Object
- 
- org.eclipse.emf.spi.cdo.AbstractConflictResolver
- 
- org.eclipse.emf.spi.cdo.AbstractObjectConflictResolver
 
 
- 
- All Implemented Interfaces:
- CDOConflictResolver,- CDOConflictResolver2
 - Direct Known Subclasses:
- AbstractObjectConflictResolver.TakeRemoteChangesThenApplyLocalChanges,- AbstractObjectConflictResolver.ThreeWayMerge
 
 public abstract class AbstractObjectConflictResolver extends AbstractConflictResolver implements CDOConflictResolver2 If the meaning of this type isn't clear, there really should be more of a description here...- Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractObjectConflictResolver.MergeLocalChangesPerFeatureDeprecated.As of 4.0 use CDOMergingConflictResolverstatic classAbstractObjectConflictResolver.TakeRemoteChangesThenApplyLocalChangesDeprecated.static classAbstractObjectConflictResolver.ThreeWayMergeIf the meaning of this type isn't clear, there really should be more of a description here...- 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.transaction.CDOConflictResolverCDOConflictResolver.NonConflictAware
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractObjectConflictResolver()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidchangeObject(CDOObject object, CDORevisionDelta revisionDelta)TODO SeeCDOObjectMerger!!!static voidreadObject(CDOObject object)protected voidresolveConflict(CDOObject conflict, CDORevision oldRemoteRevision, CDORevisionDelta localDelta, CDORevisionDelta remoteDelta, java.util.List<CDORevisionDelta> allRemoteDeltas)Resolves the conflict of a single object in the current transaction.protected voidresolveConflict(CDOObject conflict, CDORevisionDelta localDelta)Resolves the conflict of a single object in the current transaction.voidresolveConflicts(java.util.Map<CDOObject,org.eclipse.net4j.util.collection.Pair<CDORevision,CDORevisionDelta>> conflicts, java.util.List<CDORevisionDelta> allRemoteDeltas)Resolves conflicts after remote invalidations arrived for objects that are locally dirty or detached.voidresolveConflicts(java.util.Set<CDOObject> conflicts)Resolves conflicts after remote invalidations arrived for objects that are locally dirty or detached.static voidrollbackObject(CDOObject object)Deprecated.Don't call this method.- 
Methods inherited from class org.eclipse.emf.spi.cdo.AbstractConflictResolvergetTransaction, hookTransaction, setTransaction, unhookTransaction
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.emf.cdo.transaction.CDOConflictResolvergetTransaction, setTransaction
 
- 
 
- 
- 
- 
Method Detail- 
resolveConflictspublic void resolveConflicts(java.util.Set<CDOObject> conflicts) Description copied from interface:CDOConflictResolverResolves conflicts after remote invalidations arrived for objects that are locally dirty or detached.- Specified by:
- resolveConflictsin interface- CDOConflictResolver
 
 - 
resolveConflictprotected void resolveConflict(CDOObject conflict, CDORevisionDelta localDelta) Resolves the conflict of a single object in the current transaction.
 - 
resolveConflictspublic void resolveConflicts(java.util.Map<CDOObject,org.eclipse.net4j.util.collection.Pair<CDORevision,CDORevisionDelta>> conflicts, java.util.List<CDORevisionDelta> allRemoteDeltas) Description copied from interface:CDOConflictResolver2Resolves conflicts after remote invalidations arrived for objects that are locally dirty or detached.Depending on the decisions taken to resolve the conflict, it may be necessary to adjust the notifications that will be sent to the adapters in the current transaction. This can be achieved by adjusting the CDORevisionDeltaindeltas.- Specified by:
- resolveConflictsin interface- CDOConflictResolver2
- Parameters:
- conflicts- A map that contains the local objects with conflicts as the keys. Each value in this map is a- pairthat optionally contains the old local revision (ancestor) as element1 and the remote delta as element2. Any of the pair elements can be- nullif it is not possible to determine it locally (depends on local revision caching and server behavior regarding transmission of deltas instead of invalidations).
- Since:
- 4.0
 
 - 
resolveConflictprotected void resolveConflict(CDOObject conflict, CDORevision oldRemoteRevision, CDORevisionDelta localDelta, CDORevisionDelta remoteDelta, java.util.List<CDORevisionDelta> allRemoteDeltas) Resolves the conflict of a single object in the current transaction. Depending on the decision taken to resolve the conflict, it may be necessary to adjust the notification that will be sent to the adapters in the current transaction. This can be achieved by adjusting theCDORevisionDeltaindeltas.- Since:
- 4.0
 
 - 
rollbackObject@Deprecated public static void rollbackObject(CDOObject object) Deprecated.Don't call this method. Rolling back single objects is exremely risky.
 - 
readObjectpublic static void readObject(CDOObject object) 
 - 
changeObjectpublic static void changeObject(CDOObject object, CDORevisionDelta revisionDelta) TODO SeeCDOObjectMerger!!!
 
- 
 
-