SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-282
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Hani Suleiman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

Allow dynamic queries for reindexing in JPA

Created: 10/Oct/06 08:36 AM   Updated: 10/Oct/06 11:53 AM
Component/s: Compass::Gps
Affects Version/s: 1.1 M2
Fix Version/s: 1.1 M3


 Description  « Hide
Something that'd be very useful is dynamic queries for reindexing in
jpa. For example, lets say I have an entity that has a 'expiryDate'
field. I don't want to index anything that has already expired. So
when reindexing, the set of entities returned depends on the current
time.

So what'd be nice is if I could register some kind of object that would
be responsible for returning a Query object to compass, which compass
can then use. So instead of the select query being a String in
EntityInformation, it were an object that returned a Query object
(default implementation would be the way it works now), that could be
plugged in by users to specify criteria at runtime for entity info.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 10/Oct/06 09:18 AM
Added JpaQueryProvider, which can be set on the JpaGpsDevice (similar to how custom select statement can be set). If it is what was asked for, I will close this issue.