public class ObjectFilter
extends java.lang.Object
| Constructor and Description |
|---|
ObjectFilter() |
| Modifier and Type | Method and Description |
|---|---|
static Group |
and(Criteria... expressions) |
static Criterion |
between(java.lang.Class clazz,
java.lang.Object name,
java.lang.String svalue,
java.lang.String svalue2) |
static Criterion |
between(java.lang.Object name,
java.lang.Object value,
java.lang.Object value2) |
static Criterion |
betweenByte(java.lang.Object name,
byte start,
byte stop) |
static Criterion |
betweenChar(java.lang.Object name,
char start,
char stop) |
static Criterion |
betweenDouble(java.lang.Object name,
double start,
double stop) |
static Criterion |
betweenFloat(java.lang.Object name,
float start,
float stop) |
static Criterion |
betweenInt(java.lang.Object name,
int start,
int stop) |
static Criterion |
betweenLong(java.lang.Object name,
long start,
long stop) |
static Criterion |
betweenShort(java.lang.Object name,
short start,
short stop) |
static Criterion |
contains(java.lang.Object name,
java.lang.Object value) |
static Criteria |
createCriteria(java.lang.String name,
Operator operator,
TypeType type,
java.lang.Class<java.lang.Object> classType,
java.util.List<?> values)
Make criteria configurable
|
static Criteria |
createCriteriaFromClass(java.lang.String name,
java.lang.Class<?> cls,
Operator operator,
java.util.List<?> values)
Make criteria configurable
|
static Criteria |
criteriaFromJson(java.lang.String json)
Converts a JSON string into a Criteria.
|
static Criteria |
criteriaFromList(java.util.List<?> list)
Creates criteria from a list.
|
static Criterion |
empty(java.lang.Object name) |
static Criterion |
endsWith(java.lang.Object name,
java.lang.Object value) |
static Criterion |
eq(java.lang.Object name,
java.lang.Object value) |
static Criterion |
eqBoolean(java.lang.Object name,
boolean compareValue) |
static Criterion |
eqByte(java.lang.Object name,
byte compareValue) |
static Criterion |
eqChar(java.lang.Object name,
char compareValue) |
static Criterion |
eqDouble(java.lang.Object name,
double compareValue) |
static Criterion |
eqFloat(java.lang.Object name,
float compareValue) |
static Criterion |
eqInt(java.lang.Object name,
int compareValue) |
static Criterion |
eqLong(java.lang.Object name,
long compareValue) |
static Criterion |
eqShort(java.lang.Object name,
short compareValue) |
static <T> java.util.List<T> |
filter(java.util.Collection<T> items,
Criteria... exp) |
static <T> java.util.List<T> |
filter(java.util.Collection<T> items,
java.util.List<Criteria> expressions) |
static Criterion |
gt(java.lang.Object name,
java.lang.Object value) |
static Criterion |
gtByte(java.lang.Object name,
byte compareValue) |
static Criterion |
gtChar(java.lang.Object name,
char compareValue) |
static Criterion |
gtDouble(java.lang.Object name,
double compareValue) |
static Criterion |
gte(java.lang.Object name,
java.lang.Object value) |
static Criterion |
gteByte(java.lang.Object name,
byte compareValue) |
static Criterion |
gteChar(java.lang.Object name,
char compareValue) |
static Criterion |
gteDouble(java.lang.Object name,
double compareValue) |
static Criterion |
gteFloat(java.lang.Object name,
float compareValue) |
static Criterion |
gteInt(java.lang.Object name,
int compareValue) |
static Criterion |
gteLong(java.lang.Object name,
long compareValue) |
static Criterion |
gteShort(java.lang.Object name,
short compareValue) |
static Criterion |
gtFloat(java.lang.Object name,
float compareValue) |
static Criterion |
gtInt(java.lang.Object name,
int compareValue) |
static Criterion |
gtLong(java.lang.Object name,
long compareValue) |
static Criterion |
gtShort(java.lang.Object name,
short compareValue) |
static Criterion |
implementsInterface(java.lang.Class<?> cls) |
static Criterion |
in(java.lang.Object name,
java.lang.Object... values) |
static Criterion |
inBytes(java.lang.Object name,
byte... compareValues) |
static Criterion |
inChars(java.lang.Object name,
char... compareValues) |
static Criterion |
inDoubles(java.lang.Object name,
double... compareValues) |
static Criterion |
inFloats(java.lang.Object name,
float... compareValues) |
static Criterion |
inInts(java.lang.Object name,
int... compareValues) |
static Criterion |
inLongs(java.lang.Object name,
long... compareValues) |
static Criterion |
inShorts(java.lang.Object name,
short... compareValues) |
static Criterion |
instanceOf(java.lang.Class<?> cls) |
static Criterion |
isNull(java.lang.Object name) |
static Criterion |
lt(java.lang.Object name,
java.lang.Object value) |
static Criterion |
ltByte(java.lang.Object name,
byte compareValue) |
static Criterion |
ltChar(java.lang.Object name,
char compareValue) |
static Criterion |
ltDouble(java.lang.Object name,
double compareValue) |
static Criterion |
lte(java.lang.Object name,
java.lang.Object value) |
static Criterion |
lteByte(java.lang.Object name,
byte compareValue) |
static Criterion |
lteChar(java.lang.Object name,
char compareValue) |
static Criterion |
lteDouble(java.lang.Object name,
double compareValue) |
static Criterion |
lteFloat(java.lang.Object name,
float compareValue) |
static Criterion |
lteInt(java.lang.Object name,
int compareValue) |
static Criterion |
lteLong(java.lang.Object name,
long compareValue) |
static Criterion |
lteShort(java.lang.Object name,
short compareValue) |
static Criterion |
ltFloat(java.lang.Object name,
float compareValue) |
static Criterion |
ltInt(java.lang.Object name,
int compareValue) |
static Criterion |
ltLong(java.lang.Object name,
long compareValue) |
static Criterion |
ltShort(java.lang.Object name,
short compareValue) |
static boolean |
matches(java.lang.Object obj,
Criteria... exp)
Does the object match this expression.
|
static boolean |
matches(java.lang.Object obj,
java.util.List<Criteria> expressions) |
static boolean |
matches(java.lang.Object obj,
Predicate exp)
Does the object match this predicate
|
static Not |
not(Criteria expression) |
static Criterion |
notContains(java.lang.Object name,
java.lang.Object value) |
static Criterion |
notEmpty(java.lang.Object name) |
static Criterion |
notEq(java.lang.Object name,
java.lang.Object value) |
static Criterion |
notEqBoolean(java.lang.Object name,
boolean compareValue) |
static Criterion |
notEqByte(java.lang.Object name,
byte compareValue) |
static Criterion |
notEqChar(java.lang.Object name,
char compareValue) |
static Criterion |
notEqDouble(java.lang.Object name,
double compareValue) |
static Criterion |
notEqFloat(java.lang.Object name,
float compareValue) |
static Criterion |
notEqInt(java.lang.Object name,
int compareValue) |
static Criterion |
notEqLong(java.lang.Object name,
long compareValue) |
static Criterion |
notEqShort(java.lang.Object name,
short compareValue) |
static Criterion |
notIn(java.lang.Object name,
java.lang.Object... values)
This has to convert values to field type.
|
static Criterion |
notInBytes(java.lang.Object name,
byte... compareValues) |
static Criterion |
notInChars(java.lang.Object name,
char... compareValues) |
static Criterion |
notInDoubles(java.lang.Object name,
double... compareValues) |
static Criterion |
notInFloats(java.lang.Object name,
float... compareValues) |
static Criterion |
notInInts(java.lang.Object name,
int... compareValues) |
static Criterion |
notInLongs(java.lang.Object name,
long... compareValues) |
static Criterion |
notInShorts(java.lang.Object name,
short... compareValues) |
static Criterion |
notNull(java.lang.Object name) |
static Group |
or(Criteria... expressions) |
static Criterion |
startsWith(java.lang.Object name,
java.lang.Object value) |
static Criterion |
typeOf(java.lang.String className) |
public static boolean matches(java.lang.Object obj,
Criteria... exp)
obj - object in questionexp - expressionpublic static boolean matches(java.lang.Object obj,
Predicate exp)
obj - object in questionexp - predicatepublic static boolean matches(java.lang.Object obj,
java.util.List<Criteria> expressions)
public static <T> java.util.List<T> filter(java.util.Collection<T> items,
java.util.List<Criteria> expressions)
public static <T> java.util.List<T> filter(java.util.Collection<T> items,
Criteria... exp)
public static Criterion eq(java.lang.Object name, java.lang.Object value)
public static Criterion typeOf(java.lang.String className)
public static Criterion instanceOf(java.lang.Class<?> cls)
public static Criterion implementsInterface(java.lang.Class<?> cls)
public static Criterion notEq(java.lang.Object name, java.lang.Object value)
public static Criterion notIn(java.lang.Object name, java.lang.Object... values)
public static Criterion in(java.lang.Object name, java.lang.Object... values)
public static Criterion lt(java.lang.Object name, java.lang.Object value)
public static Criterion lte(java.lang.Object name, java.lang.Object value)
public static Criterion gt(java.lang.Object name, java.lang.Object value)
public static Criterion gte(java.lang.Object name, java.lang.Object value)
public static Criterion between(java.lang.Object name, java.lang.Object value, java.lang.Object value2)
public static Criterion between(java.lang.Class clazz, java.lang.Object name, java.lang.String svalue, java.lang.String svalue2)
public static Criterion startsWith(java.lang.Object name, java.lang.Object value)
public static Criterion endsWith(java.lang.Object name, java.lang.Object value)
public static Criterion notContains(java.lang.Object name, java.lang.Object value)
public static Criterion contains(java.lang.Object name, java.lang.Object value)
public static Criterion notEmpty(java.lang.Object name)
public static Criterion empty(java.lang.Object name)
public static Criterion notNull(java.lang.Object name)
public static Criterion isNull(java.lang.Object name)
public static Criterion eqInt(java.lang.Object name, int compareValue)
public static Criterion notEqInt(java.lang.Object name, int compareValue)
public static Criterion notInInts(java.lang.Object name, int... compareValues)
public static Criterion inInts(java.lang.Object name, int... compareValues)
public static Criterion ltInt(java.lang.Object name, int compareValue)
public static Criterion lteInt(java.lang.Object name, int compareValue)
public static Criterion gtInt(java.lang.Object name, int compareValue)
public static Criterion gteInt(java.lang.Object name, int compareValue)
public static Criterion betweenInt(java.lang.Object name, int start, int stop)
public static Criterion eqFloat(java.lang.Object name, float compareValue)
public static Criterion notEqFloat(java.lang.Object name, float compareValue)
public static Criterion notInFloats(java.lang.Object name, float... compareValues)
public static Criterion inFloats(java.lang.Object name, float... compareValues)
public static Criterion ltFloat(java.lang.Object name, float compareValue)
public static Criterion lteFloat(java.lang.Object name, float compareValue)
public static Criterion gtFloat(java.lang.Object name, float compareValue)
public static Criterion gteFloat(java.lang.Object name, float compareValue)
public static Criterion betweenFloat(java.lang.Object name, float start, float stop)
public static Criterion eqBoolean(java.lang.Object name, boolean compareValue)
public static Criterion notEqBoolean(java.lang.Object name, boolean compareValue)
public static Criterion eqDouble(java.lang.Object name, double compareValue)
public static Criterion notEqDouble(java.lang.Object name, double compareValue)
public static Criterion notInDoubles(java.lang.Object name, double... compareValues)
public static Criterion inDoubles(java.lang.Object name, double... compareValues)
public static Criterion ltDouble(java.lang.Object name, double compareValue)
public static Criterion lteDouble(java.lang.Object name, double compareValue)
public static Criterion gtDouble(java.lang.Object name, double compareValue)
public static Criterion gteDouble(java.lang.Object name, double compareValue)
public static Criterion betweenDouble(java.lang.Object name, double start, double stop)
public static Criterion eqShort(java.lang.Object name, short compareValue)
public static Criterion notEqShort(java.lang.Object name, short compareValue)
public static Criterion notInShorts(java.lang.Object name, short... compareValues)
public static Criterion inShorts(java.lang.Object name, short... compareValues)
public static Criterion ltShort(java.lang.Object name, short compareValue)
public static Criterion lteShort(java.lang.Object name, short compareValue)
public static Criterion gtShort(java.lang.Object name, short compareValue)
public static Criterion gteShort(java.lang.Object name, short compareValue)
public static Criterion betweenShort(java.lang.Object name, short start, short stop)
public static Criterion eqByte(java.lang.Object name, byte compareValue)
public static Criterion notEqByte(java.lang.Object name, byte compareValue)
public static Criterion notInBytes(java.lang.Object name, byte... compareValues)
public static Criterion inBytes(java.lang.Object name, byte... compareValues)
public static Criterion ltByte(java.lang.Object name, byte compareValue)
public static Criterion lteByte(java.lang.Object name, byte compareValue)
public static Criterion gtByte(java.lang.Object name, byte compareValue)
public static Criterion gteByte(java.lang.Object name, byte compareValue)
public static Criterion betweenByte(java.lang.Object name, byte start, byte stop)
public static Criterion eqLong(java.lang.Object name, long compareValue)
public static Criterion notEqLong(java.lang.Object name, long compareValue)
public static Criterion notInLongs(java.lang.Object name, long... compareValues)
public static Criterion inLongs(java.lang.Object name, long... compareValues)
public static Criterion ltLong(java.lang.Object name, long compareValue)
public static Criterion lteLong(java.lang.Object name, long compareValue)
public static Criterion gtLong(java.lang.Object name, long compareValue)
public static Criterion gteLong(java.lang.Object name, long compareValue)
public static Criterion betweenLong(java.lang.Object name, long start, long stop)
public static Criterion eqChar(java.lang.Object name, char compareValue)
public static Criterion notEqChar(java.lang.Object name, char compareValue)
public static Criterion notInChars(java.lang.Object name, char... compareValues)
public static Criterion inChars(java.lang.Object name, char... compareValues)
public static Criterion ltChar(java.lang.Object name, char compareValue)
public static Criterion lteChar(java.lang.Object name, char compareValue)
public static Criterion gtChar(java.lang.Object name, char compareValue)
public static Criterion gteChar(java.lang.Object name, char compareValue)
public static Criterion betweenChar(java.lang.Object name, char start, char stop)
public static Criteria createCriteria(java.lang.String name, Operator operator, TypeType type, java.lang.Class<java.lang.Object> classType, java.util.List<?> values)
operator - type - values - public static Criteria createCriteriaFromClass(java.lang.String name, java.lang.Class<?> cls, Operator operator, java.util.List<?> values)
operator - values - public static Criteria criteriaFromList(java.util.List<?> list)
list - list to configure a single criteriapublic static Criteria criteriaFromJson(java.lang.String json)
json - Copyright © 2014. All Rights Reserved.