Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318992

Summary: Support remote cross referencing with a convenient API on the client and SPI on the server for the stores to implement
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Adjusted patch from bug 300149 none

Description Eike Stepper CLA 2010-07-06 06:51:31 EDT
Cloned from: 300149: Support remote cross referencing with a convenient API on the client and SPI on the server for the stores to implement
https://bugs.eclipse.org/bugs/show_bug.cgi?id=300149

It would be great to extend CDO with the possibility to query all the objects referencing a certain object. The so-called crossreferencing (or xref) functionality. 

Using the model available on the server it is possible to determine for each EClass what queries are needed to retrieve the referencing objects.

A thing to consider is how to handle larger volumes of referencing objects. It is clearly possible that multiple queries are needed to retrieve all cross referencers so it can be difficult to implement paging or sublist behavior. So maybe the client api can pass in a max number of returned objects.

To support xref I think we need:
- an api and convenience method on the client
- a server side api definition 
- implementation of this functionality in each store

Eike and others let me know if you have any comments or feedback on this. 

Thanks!

Martin T.
Comment 1 Eike Stepper CLA 2010-07-06 06:59:40 EDT
Created attachment 173529 [details]
Adjusted patch from bug 300149
Comment 2 Eike Stepper CLA 2010-07-06 07:05:03 EDT
Committed to R3_0_maintenance
Comment 3 Eike Stepper CLA 2011-06-23 04:30:32 EDT
Moving all open enhancement requests to 4.1
Comment 4 Eike Stepper CLA 2011-07-06 02:44:10 EDT
Reverting the previous status change which was accidental.
Comment 5 Eike Stepper CLA 2011-08-04 02:22:33 EDT
According to comment #2 the version should be 3.0.