On 28/12/2007, at 7:55 AM, Tore Halset wrote:

// new
<T> List<T> performQuery(Class<T> aClass, Query query);

+0. I would like to use a specific interface instead if possible.
public <T> List<T> performQuery(PersistentSelectQuery<T> query);

+1 but I think a separate function name will be required if SelectQuery, ObjectIdQuery, etc are to implement PersistentSelectQuery and keep backward compatibility with existing code.

public <T> List<T> fetchObjects(PersistentSelectQuery<T> query);


// new
List<DataRow> performDataRowQuery(Query query);

+0. I would like to use a specific interface instead if possible.
public List<DataRow> performQuery(DataRowQuery query);

My hope is that SelectQuery would become typesafe, but that would destroy DataRow support for SelectQuery.

Not necessarily: SelectQuery still could be generified. And then that type data is not used when performing a data row query.

public List<DataRow> fetchDataRows(Query query);


That is not too important for me as I only use DataRow SelectQuery in a couple of places. The second best alternative (AFAIK) would be to create new Query classes to handle this as I have written earlier.





-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


Reply via email to