Issue Details (XML | Word | Printable)

Key: JAVAXJDO-4
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Change Query setters to return the Query instance, leading to a fluent API

Created: 30/Apr/14 12:47 PM   Updated: 30/Apr/14 02:49 PM   Resolved: 30/Apr/14 02:49 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0.m1


 Description  « Hide
If using Query as a declarative API we should be able to do

Query q = pm.newQuery(MyClass.class)
    .setFilter(someFilter)
    .setResult(theResult)
    .setOrdering(theOrdering);
List<MyClass> results = q.executeList();

This issue is to address the ability to use the API fluently (not to address the removal of the need to cast the execute results).

Andy Jefferson added a comment - 30/Apr/14 02:49 PM
GitHub master changes javax.jdo.Query to have a fluent API wrt setters

Andy Jefferson made changes - 30/Apr/14 02:49 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0.0.m1 [ 12187 ]
Resolution Fixed [ 1 ]