cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aristedes Maniatis <...@maniatis.org>
Subject Re: SQLExec query
Date Mon, 26 Jan 2015 00:43:45 GMT
On 25/01/2015 10:59pm, Andrus Adamchik wrote:
> List performQuery(Query)  // current, will be deprecated eventually
> List<T> select(Select<T>) // added in M2
> T selectOne(Select<T>)    // added in M2 
> 
> Non-selecting or "multi-part" queries:
> 
> QueryResponse performGenericQuery(Query) // current, will be deprecated eventually
> List<QueryResult> execute(Query)         // added in M3
> int[] updateBatch(Query)                 // added in M3
> int update(Query)                        // added in M3

If these are to mirror the select api, should they look like

    int[] update(Query)
    int updateOne(Query)


As for 

    List<QueryResult> execute(Query)

under what circumstances when this isn't a 'select' query will we get a list of results?



-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Mime
View raw message