cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2062) MappedQuery fluent API
Date Wed, 24 Feb 2016 10:52:18 GMT

     [ https://issues.apache.org/jira/browse/CAY-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dzmitry Kazimirchyk updated CAY-2062:
-------------------------------------
    Description: 
We need a fluent query API to replace existing NamedQuery for calling queries mapped in the
data map.

MappedSelect query is designed to be used for mapped selecting queries:
{code:java}
  List<Artist> artists = MappedSelect.query("ArtistSelectQuery", Artist.class).param("name",
"artist1").select(context);
{code}

MappedExec query is designed to be used for non selecting mapped queries:
{code:java}
  int[] updated = MappedExec.query("ArtistUpdateQuery").param("name", "artist2").update(context);
{code}

  was:We need a fluent query API to replace existing NamedQuery for calling queries mapped
in the data map.


> MappedQuery fluent API
> ----------------------
>
>                 Key: CAY-2062
>                 URL: https://issues.apache.org/jira/browse/CAY-2062
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Dzmitry Kazimirchyk
>
> We need a fluent query API to replace existing NamedQuery for calling queries mapped
in the data map.
> MappedSelect query is designed to be used for mapped selecting queries:
> {code:java}
>   List<Artist> artists = MappedSelect.query("ArtistSelectQuery", Artist.class).param("name",
"artist1").select(context);
> {code}
> MappedExec query is designed to be used for non selecting mapped queries:
> {code:java}
>   int[] updated = MappedExec.query("ArtistUpdateQuery").param("name", "artist2").update(context);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message