interface GormQueryOperations<T>
Interface defining all typical query GORM operations on class
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.lang.Number |
count() Counts the number of records returned by the query |
|
abstract java.lang.Number |
count(java.util.Map args) Counts the number of records returned by the query |
|
abstract java.lang.Number |
count(java.util.Map args, groovy.lang.Closure additionalCriteria) Counts the number of records returned by the query |
|
abstract T |
find(java.util.Map args, groovy.lang.Closure additionalCriteria) Synonym for #get |
|
abstract T |
find(java.util.Map args) Synonym for #get |
|
abstract T |
find() Synonym for #get |
|
abstract T |
get(java.util.Map args, groovy.lang.Closure additionalCriteria) Returns a single result matching the criterion contained within this DetachedCriteria instance |
|
abstract T |
get(java.util.Map args) Returns a single result matching the criterion contained within this DetachedCriteria instance |
|
abstract T |
get() Returns a single result matching the criterion contained within this DetachedCriteria instance |
|
abstract java.util.List<T> |
list() Lists all records matching the criterion contained within this DetachedCriteria instance |
|
abstract java.util.List<T> |
list(java.util.Map args) Lists all records matching the criterion contained within this DetachedCriteria instance |
|
abstract java.util.List<T> |
list(java.util.Map args, groovy.lang.Closure additionalCriteria) Lists all records matching the criterion contained within this DetachedCriteria instance |
|
abstract java.lang.Object |
methodMissing(java.lang.String methodName, java.lang.Object args) Method missing handler for dynamic finders |
Counts the number of records returned by the query
Counts the number of records returned by the query
args
- The argumentsCounts the number of records returned by the query
args
- The argumentsadditionalCriteria
- Any additional criteriaSynonym for #get
Synonym for #get
Synonym for #get
Returns a single result matching the criterion contained within this DetachedCriteria instance
args
- The argumentsadditionalCriteria
- Additional criteriaReturns a single result matching the criterion contained within this DetachedCriteria instance
args
- The argumentsReturns a single result matching the criterion contained within this DetachedCriteria instance
Lists all records matching the criterion contained within this DetachedCriteria instance
Lists all records matching the criterion contained within this DetachedCriteria instance
args
- The argumentsLists all records matching the criterion contained within this DetachedCriteria instance
args
- The argumentsadditionalCriteria
- The additional criteriaMethod missing handler for dynamic finders
methodName
- The method nameargs
- The arguments