[jira] [Updated] (DELTASPIKE-1352) Get count of items with Criteria after filtering.

2018-09-25 Thread Thomas Andraschko (JIRA)


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

Thomas Andraschko updated DELTASPIKE-1352:
--
Component/s: Data-Module

> Get count of items with Criteria after filtering.
> -
>
> Key: DELTASPIKE-1352
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1352
> Project: DeltaSpike
>  Issue Type: New Feature
>  Components: Data-Module
>Reporter: mojo code
>Priority: Minor
>
> Hi. I'm filtering using "Criteria" by some  conditions It works correctly and 
> get the list of item that meets the conditions. I would like to get the count 
> of items which meets the conditions without getting this list in memory, I 
> just want to query this count number.
> Thanks in advance.
> ""
>     int findUserByCriteria(String name, Boolean active,  Integer idrol){
>         Criteria c = criteria();
>          
>          if(name != null)
>              c.likeIgnoreCase(User_.name, name + "%");
>          
>          if(active != null)
>              c.eq(User_.active, active);
>          
>          if(idrol != null)
>              c.eq(User_.idRol, idrol);
> .
> {color:#ff}  int count = ¿?{color}
> .
> return count;
> }
> ""



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (DELTASPIKE-1352) Get count of items with Criteria after filtering.

2018-09-25 Thread Thomas Andraschko (JIRA)


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

Thomas Andraschko updated DELTASPIKE-1352:
--
Priority: Minor  (was: Major)

> Get count of items with Criteria after filtering.
> -
>
> Key: DELTASPIKE-1352
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1352
> Project: DeltaSpike
>  Issue Type: New Feature
>  Components: Data-Module
>Reporter: mojo code
>Priority: Minor
>
> Hi. I'm filtering using "Criteria" by some  conditions It works correctly and 
> get the list of item that meets the conditions. I would like to get the count 
> of items which meets the conditions without getting this list in memory, I 
> just want to query this count number.
> Thanks in advance.
> ""
>     int findUserByCriteria(String name, Boolean active,  Integer idrol){
>         Criteria c = criteria();
>          
>          if(name != null)
>              c.likeIgnoreCase(User_.name, name + "%");
>          
>          if(active != null)
>              c.eq(User_.active, active);
>          
>          if(idrol != null)
>              c.eq(User_.idRol, idrol);
> .
> {color:#ff}  int count = ¿?{color}
> .
> return count;
> }
> ""



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (DELTASPIKE-1352) Get count of items with Criteria after filtering.

2018-09-25 Thread Thomas Andraschko (JIRA)


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

Thomas Andraschko updated DELTASPIKE-1352:
--
Issue Type: New Feature  (was: Test)

> Get count of items with Criteria after filtering.
> -
>
> Key: DELTASPIKE-1352
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1352
> Project: DeltaSpike
>  Issue Type: New Feature
>  Components: Data-Module
>Reporter: mojo code
>Priority: Major
>
> Hi. I'm filtering using "Criteria" by some  conditions It works correctly and 
> get the list of item that meets the conditions. I would like to get the count 
> of items which meets the conditions without getting this list in memory, I 
> just want to query this count number.
> Thanks in advance.
> ""
>     int findUserByCriteria(String name, Boolean active,  Integer idrol){
>         Criteria c = criteria();
>          
>          if(name != null)
>              c.likeIgnoreCase(User_.name, name + "%");
>          
>          if(active != null)
>              c.eq(User_.active, active);
>          
>          if(idrol != null)
>              c.eq(User_.idRol, idrol);
> .
> {color:#ff}  int count = ¿?{color}
> .
> return count;
> }
> ""



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (DELTASPIKE-1352) Get count of items with Criteria after filtering.

2018-07-09 Thread mojo code (JIRA)


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

mojo code updated DELTASPIKE-1352:
--
Priority: Major  (was: Minor)

> Get count of items with Criteria after filtering.
> -
>
> Key: DELTASPIKE-1352
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1352
> Project: DeltaSpike
>  Issue Type: Test
>Reporter: mojo code
>Priority: Major
>
> Hi. I'm filtering using "Criteria" by some  conditions It works correctly and 
> get the list of item that meets the conditions. I would like to get the count 
> of items which meets the conditions without getting this list in memory, I 
> just want to query this count number.
> Thanks in advance.
> ""
>     int findUserByCriteria(String name, Boolean active,  Integer idrol){
>         Criteria c = criteria();
>          
>          if(name != null)
>              c.likeIgnoreCase(User_.name, name + "%");
>          
>          if(active != null)
>              c.eq(User_.active, active);
>          
>          if(idrol != null)
>              c.eq(User_.idRol, idrol);
> .
> {color:#ff}  int count = ¿?{color}
> .
> return count;
> }
> ""



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)