the main builder to turn Mango QL maps and json into DetachedCriteria for Gorm
Type | Name and description |
---|---|
static Map<String, String> |
CompareOps |
static Map<String, String> |
ExistOps |
static Map<String, String> |
JunctionOps |
static Map<String, String> |
OverrideOps |
static Map<String, String> |
PropertyOps |
static Map<String, String> |
QuickSearchOps |
static Map<String, String> |
SortOps |
Type Params | Return Type | Name and description |
---|---|---|
|
static DetachedCriteria |
and(DetachedCriteria criteria, List andList) Handles a conjunction |
|
static void |
applyField(DetachedCriteria criteria, String field, Object fieldVal) |
|
static void |
applyMap(DetachedCriteria criteria, Map mangoMap) applies the map just like running a closure.call on this. |
|
static void |
applyMapOrList(DetachedCriteria criteria, Object mapOrList) |
|
static DetachedCriteria |
between(DetachedCriteria criteria, String propertyName, List params) |
|
static DetachedCriteria |
build(Class clazz, Map map, Closure callable = null) |
|
static DetachedCriteria |
build(DetachedCriteria criteria, Map map, Closure callable = null) |
|
static DetachedCriteria |
cloneCriteria(DetachedCriteria criteria) |
|
static List<String> |
getQuickSearchFields(DetachedCriteria criteria) |
|
static Class |
getTargetClass(DetachedCriteria criteria) |
|
static void |
handleJunction(DetachedCriteria criteria, List list) junctions are basically used like a stack that we pop. when they finish they get added to the criteria list. |
|
static Object |
invoke(String op, Object... args) |
|
static DetachedCriteria |
not(DetachedCriteria criteria, List notList) Handles a disjunction |
|
static DetachedCriteria |
notIn(DetachedCriteria criteria, String propertyName, List params) |
|
static DetachedCriteria |
or(DetachedCriteria criteria, List orList) Handles a disjunction |
|
static DetachedCriteria |
order(DetachedCriteria criteria, Object sort) |
|
static DetachedCriteria |
quickSearch(DetachedCriteria criteria, String value) |
|
static Object |
toType(DetachedCriteria criteria, String propertyName, Object value) |
Handles a conjunction
list
- junctions list of condition mapsapplies the map just like running a closure.call on this.
junctions are basically used like a stack that we pop. when they finish they get added to the criteria list. The add method checks to see if there is an active junction we are in.
Handles a disjunction
list
- junctions list of condition mapsHandles a disjunction
list
- junctions list of condition maps