| Summary: | Make CDOCommonView and CommitContext a CDORevisionProvider | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | Keywords: | noteworthy | ||||
| Version: | 4.0 | ||||||
| Target Milestone: | M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | Power to the People | ||||||
| Attachments: |
|
||||||
Created attachment 178785 [details]
Patch v1 - for future reference
Committed to HEAD Available in R20110608-1407 |
With IStoreAccessor.CommitContext being a CDORevisionProvider it becomes easier to navigate the "before graphs" or "after graphs": new IRepository.WriteAccessHandler() { public void handleTransactionBeforeCommitting(ITransaction transaction, CommitContext commitContext, OMMonitor monitor) throws RuntimeException { CDORevisionDelta revisionDelta = commitContext.getDirtyObjectDeltas()[0]; CDORevision revision = commitContext.getRevision(revisionDelta.getID()); CDORevision target = commitContext.getRevision((CDOID)revision.data().get(myFeature, 0)); } }; }