@GrailsCompileStatic class StaticCompiledCriteriaQueries extends java.lang.Object
Criteria queries compiled with @GrailsCompileStatic so that the bytecode produced by
the CriteriaTypeCheckingExtension is executed by the TCK against every GORM
implementation. Calls declared on the Criteria API (eq, like, or, order) compile to
static delegate dispatch, while calls that are not on the API (projections, min, countDistinct,
property, maxResults and the count terminal chained on createCriteria()) only
compile because the extension falls back to dynamic dispatch — executing them here proves that
dispatch resolves against the criteria builder of the implementation under test.
| Constructor and description |
|---|
StaticCompiledCriteriaQueries() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.lang.Number |
countByNameLike(java.lang.String pattern) |
|
static java.lang.Number |
countDistinctAges() |
|
static TestEntity |
getByName(java.lang.String name) |
|
static java.util.List |
listByNameLike(java.lang.String pattern) |
|
static java.util.List |
listByNameLikeLimited(java.lang.String pattern, int limit) |
|
static java.util.List |
listByNameLikeOrAge(java.lang.String pattern, int age) |
|
static java.util.List |
listPaginatedOrderedByAge(int max, int offset) |
|
static java.lang.Number |
minAge() |
|
static java.util.List |
namesMatching(java.lang.String pattern) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |