This is here to make it easier to build criteria with domain bean paths allows order('invoice.customer.name') instead of invoice { customer { order(name) } } simliar with eq, like and in ilike('invoice.customer.name', 'foo')
Fields inherited from class | Fields |
---|---|
class HibernateCriteriaBuilder |
BOOLEAN, YES_NO, BYTE, CHARACTER, SHORT, INTEGER, LONG, FLOAT, DOUBLE, BIG_DECIMAL, BIG_INTEGER, STRING, NUMERIC_BOOLEAN, TRUE_FALSE, URL, TIME, DATE, TIMESTAMP, CALENDAR, CALENDAR_DATE, CLASS, LOCALE, CURRENCY, TIMEZONE, UUID_BINARY, UUID_CHAR, BINARY, WRAPPER_BINARY, IMAGE, BLOB, MATERIALIZED_BLOB, CHAR_ARRAY, CHARACTER_ARRAY, TEXT, CLOB, MATERIALIZED_CLOB, SERIALIZABLE, AND, IS_NULL, IS_NOT_NULL, NOT, OR, ID_EQUALS, IS_EMPTY, IS_NOT_EMPTY, RLIKE, BETWEEN, EQUALS, EQUALS_PROPERTY, GREATER_THAN, GREATER_THAN_PROPERTY, GREATER_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL_PROPERTY, ILIKE, IN, LESS_THAN, LESS_THAN_PROPERTY, LESS_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL_PROPERTY, LIKE, NOT_EQUAL, NOT_EQUAL_PROPERTY, SIZE_EQUALS, ORDER_DESCENDING, ORDER_ASCENDING |
class AbstractHibernateCriteriaBuilder |
AND, IS_NULL, IS_NOT_NULL, NOT, OR, ID_EQUALS, IS_EMPTY, IS_NOT_EMPTY, RLIKE, BETWEEN, EQUALS, EQUALS_PROPERTY, GREATER_THAN, GREATER_THAN_PROPERTY, GREATER_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL_PROPERTY, ILIKE, IN, LESS_THAN, LESS_THAN_PROPERTY, LESS_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL_PROPERTY, LIKE, NOT_EQUAL, NOT_EQUAL_PROPERTY, SIZE_EQUALS, ORDER_DESCENDING, ORDER_ASCENDING |
Constructor and description |
---|
GormHibernateCriteriaBuilder
(Class arg1, org.hibernate.SessionFactory arg2) |
Type Params | Return Type | Name and description |
---|---|---|
|
Criteria |
eq(String propertyName, Object propertyValue) |
|
Criteria |
ilike(String propertyName, Object propertyValue) |
|
Criteria |
inList(String propertyName, Collection values) |
|
Criteria |
inList(String propertyName, Object[] values) |
|
Criteria |
like(String propertyName, Object propertyValue) Creates a Criterion with from the specified property name and "like" expression |
|
Object |
methodMissing(String name, Object args) Dynamic method dispatch fail! |
|
Criteria |
nestedPathPropCall(String propertyName, Object propertyValue, String critName) |
|
Criteria |
order(String propertyName) Orders by the specified property name (defaults to ascending) |
|
Criteria |
order(String propertyName, String direction, boolean forceSuper = false) Orders by the specified property name and direction takes invoice.customer.name and builds a closure that looks like |
Creates a Criterion with from the specified property name and "like" expression
propertyName
- The property namepropertyValue
- The like valueOrders by the specified property name (defaults to ascending)
propertyName
- The property name to order byOrders by the specified property name and direction takes invoice.customer.name and builds a closure that looks like invoice { customer { order(name) } } and then calls the that closure on this.
propertyName
- The property name to order bydirection
- Either "asc" for ascending or "desc" for descendingforceSuper
- use original order(...) from HibernateCriteriaBuilder