Re: performQuery generics

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Dec 21 2007 - 09:32:54 EST

  • Next message: Kevin Menard: "Re: svn commit: r605850 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/ apache/cayenne: ./ access/ access/jdbc/ access/types/ dba/ dba/openbase/ dba/oracle/ dba/sqlite/ dba/sqlserver/ exp/parser/ query/ reflect/ util/ wocompat/"

    On Dec 21, 2007, at 2:30 PM, Tore Halset wrote:

    > SelectQuery would be a Query<Object>
    > DataRowSelectQuery would be a Query<DataRow>
    > PersistentSelectQuery would be a Query<? extends Persistent>

    That will work... My problem is conceptual - Query interface is too
    generic to imply a single result type parameter. There are updating
    queries, but even selecting ones like SQLTemplate and ProcedureQuery
    can return multiple results of different type (which is abstracted in
    org.apache.cayenne.QueryResponse).

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Dec 21 2007 - 09:33:28 EST