public class QueryConditionImpl extends Object implements QueryCondition
| Modifier | Constructor and Description |
|---|---|
|
QueryConditionImpl(GenericObjectQuery<?> objectQuery,
ConditionGroup group) |
protected |
QueryConditionImpl(InternalConditionBuilder group) |
| Modifier and Type | Method and Description |
|---|---|
QueryCondition |
and()
Create a condition group and.
|
<C,T extends C> |
between(C target,
T from,
T to)
Add an between condition with a target and a range( from to ).
|
void |
condition(Object base,
ConditionType type,
Object value,
Object value1) |
<C,T extends C> |
contains(Collection<C> target,
ObjectQuery<T> value)
Add a contains condition between expression and a query.
|
<C,T extends C> |
contains(Collection<C> target,
T value)
Add a contains condition between two values.
|
<C,T extends C> |
eq(C target,
ObjectQuery<T> value)
Add an equal condition between expression and a query.
|
<C,T extends C> |
eq(C target,
T value)
Add an equal condition between two values.
|
<C,T extends C> |
gt(C target,
ObjectQuery<T> value)
Add a "grater than" condition between expression and a query.
|
<C,T extends C> |
gt(C target,
T value)
Add a "grater than" condition between two values.
|
<C,T extends C> |
gtEq(C target,
ObjectQuery<T> value)
Add an "grater than or equals" condition between expression and a query.
|
<C,T extends C> |
gtEq(C target,
T value)
Add a "grater than or equals" condition between two values.
|
<C,T extends C> |
in(C target,
ObjectQuery<T> value)
Add an in condition between expression and a query.
|
<C,T extends Collection<? extends C>> |
in(C target,
T value)
Add an in condition between two values.
|
<C,T extends C> |
like(C target,
T value)
Add a like condition between two values.
|
<C,T extends C> |
likeNc(C target,
T value)
Add a like condition between two values without case match.
|
<C,T extends C> |
lt(C target,
ObjectQuery<T> value)
Add a "lesser than" condition between expression and a query.
|
<C,T extends C> |
lt(C target,
T value)
Add a "lesser than" condition between two values.
|
<C,T extends C> |
ltEq(C target,
ObjectQuery<T> value)
Add a min or equals condition between expression and a query.
|
<C,T extends C> |
ltEq(C target,
T value)
Add a "lesser than" or equals condition between two values.
|
<C,T extends C> |
max(C target,
ObjectQuery<T> value)
Deprecated.
|
<C,T extends C> |
max(C target,
T value)
Deprecated.
|
<C,T extends C> |
maxEq(C target,
ObjectQuery<T> value)
Deprecated.
|
<C,T extends C> |
maxEq(C target,
T value)
Deprecated.
|
<C,T extends C> |
min(C target,
ObjectQuery<T> value)
Deprecated.
|
<C,T extends C> |
min(C target,
T value)
Deprecated.
|
<C,T extends C> |
minEq(C target,
ObjectQuery<T> value)
Deprecated.
|
<C,T extends C> |
minEq(C target,
T value)
Deprecated.
|
<C,T extends C> |
notContains(Collection<C> target,
ObjectQuery<T> value)
Add a not contains condition between expression and a query.
|
<C,T extends C> |
notContains(Collection<C> target,
T value)
Add a not contains condition between two values.
|
<C,T extends C> |
notEq(C target,
ObjectQuery<T> value)
Add a not equal condition between expression and a query.
|
<C,T extends C> |
notEq(C target,
T value)
Add a not equal condition between two values.
|
<C,T extends C> |
notIn(C target,
ObjectQuery<T> value)
Add a not in condition between expression and a query.
|
<C,T extends Collection<? extends C>> |
notIn(C target,
T value)
Add a not in condition between two values.
|
<C,T extends C> |
notLike(C target,
T value)
Add a not like condition between two values.
|
<C,T extends C> |
notLikeNc(C target,
T value)
Add a not like condition between two values without case match.
|
QueryCondition |
or()
Create a condition group or.
|
protected QueryConditionImpl(InternalConditionBuilder group)
public QueryConditionImpl(GenericObjectQuery<?> objectQuery, ConditionGroup group)
public void condition(Object base, ConditionType type, Object value, Object value1)
public QueryCondition and()
QueryConditionand in interface QueryConditionpublic QueryCondition or()
QueryConditionor in interface QueryConditionpublic <C,T extends C> void eq(C target,
T value)
QueryConditioneq in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void eq(C target,
ObjectQuery<T> value)
QueryConditioneq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void notEq(C target,
T value)
QueryConditionnotEq in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void notEq(C target,
ObjectQuery<T> value)
QueryConditionnotEq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void gt(C target,
T value)
QueryConditiongt in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void gt(C target,
ObjectQuery<T> value)
QueryConditiongt in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void gtEq(C target,
T value)
QueryConditiongtEq in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void gtEq(C target,
ObjectQuery<T> value)
QueryConditiongtEq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.@Deprecated public <C,T extends C> void max(C target, T value)
QueryConditionmax in interface QueryConditiontarget - the base operation target.value - the operation expected value.@Deprecated public <C,T extends C> void max(C target, ObjectQuery<T> value)
QueryConditionmax in interface QueryConditiontarget - the base operation target.value - the query source of expected value.@Deprecated public <C,T extends C> void maxEq(C target, T value)
QueryConditionmaxEq in interface QueryConditiontarget - the base operation target.value - the operation expected value.@Deprecated public <C,T extends C> void maxEq(C target, ObjectQuery<T> value)
QueryConditionmaxEq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void lt(C target,
T value)
QueryConditionlt in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void lt(C target,
ObjectQuery<T> value)
QueryConditionlt in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void ltEq(C target,
T value)
QueryConditionltEq in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void ltEq(C target,
ObjectQuery<T> value)
QueryConditionltEq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.@Deprecated public <C,T extends C> void min(C target, T value)
QueryConditionmin in interface QueryConditiontarget - the base operation target.value - the operation expected value.@Deprecated public <C,T extends C> void min(C target, ObjectQuery<T> value)
QueryConditionmin in interface QueryConditiontarget - the base operation target.value - the query source of expected value.@Deprecated public <C,T extends C> void minEq(C target, T value)
QueryConditionminEq in interface QueryConditiontarget - the base operation target.value - the operation expected value.@Deprecated public <C,T extends C> void minEq(C target, ObjectQuery<T> value)
QueryConditionminEq in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void like(C target,
T value)
QueryConditionlike in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void notLike(C target,
T value)
QueryConditionnotLike in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends Collection<? extends C>> void in(C target, T value)
QueryConditionin in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void in(C target,
ObjectQuery<T> value)
QueryConditionin in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends Collection<? extends C>> void notIn(C target, T value)
QueryConditionnotIn in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void notIn(C target,
ObjectQuery<T> value)
QueryConditionnotIn in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void contains(Collection<C> target, T value)
QueryConditioncontains in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void contains(Collection<C> target, ObjectQuery<T> value)
QueryConditioncontains in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void notContains(Collection<C> target, T value)
QueryConditionnotContains in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void notContains(Collection<C> target, ObjectQuery<T> value)
QueryConditionnotContains in interface QueryConditiontarget - the base operation target.value - the query source of expected value.public <C,T extends C> void likeNc(C target,
T value)
QueryConditionlikeNc in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void notLikeNc(C target,
T value)
QueryConditionnotLikeNc in interface QueryConditiontarget - the base operation target.value - the operation expected value.public <C,T extends C> void between(C target,
T from,
T to)
QueryConditionbetween in interface QueryConditiontarget - the target of between operation.from - the value from.to - the value to.Copyright © 2013 Object Query. All Rights Reserved.