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.
|
void |
condition(Object base,
ConditionType type,
Object value) |
<C,T extends C> |
contains(Collection<C> target,
T value)
Add an contains condition between two values.
|
<C,T extends C> |
eq(C target,
T value)
Add an equal condition between two values.
|
<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 an like condition between two values.
|
<C,T extends C> |
likeNc(C target,
T value)
Add an like condition between two values without case match.
|
<C,T extends C> |
max(C target,
T value)
Add an max condition between two values.
|
<C,T extends C> |
maxEq(C target,
T value)
Add an max or equals condition between two values.
|
<C,T extends C> |
min(C target,
T value)
Add an min condition between two values.
|
<C,T extends C> |
minEq(C target,
T value)
Add an min or equals condition between two values.
|
<C,T extends C> |
notContains(Collection<C> target,
T value)
Add an contains condition between two values.
|
<C,T extends C> |
notEq(C target,
T value)
Add an not equal condition between two values.
|
<C,T extends Collection<? extends C>> |
notIn(C target,
T value)
Add an not in condition between two values.
|
<C,T extends C> |
notLike(C target,
T value)
Add an not like condition between two values.
|
<C,T extends C> |
notLikeNc(C target,
T value)
Add an 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)
public QueryCondition and()
QueryCondition
and
in interface QueryCondition
public QueryCondition or()
QueryCondition
or
in interface QueryCondition
public <C,T extends C> void eq(C target, T value)
QueryCondition
eq
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void notEq(C target, T value)
QueryCondition
notEq
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void max(C target, T value)
QueryCondition
max
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void maxEq(C target, T value)
QueryCondition
maxEq
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void min(C target, T value)
QueryCondition
min
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void minEq(C target, T value)
QueryCondition
minEq
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void like(C target, T value)
QueryCondition
like
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void notLike(C target, T value)
QueryCondition
notLike
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends Collection<? extends C>> void in(C target, T value)
QueryCondition
in
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends Collection<? extends C>> void notIn(C target, T value)
QueryCondition
notIn
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void contains(Collection<C> target, T value)
QueryCondition
contains
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void notContains(Collection<C> target, T value)
QueryCondition
notContains
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void likeNc(C target, T value)
QueryCondition
likeNc
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.public <C,T extends C> void notLikeNc(C target, T value)
QueryCondition
notLikeNc
in interface QueryCondition
target
- the base operation target.value
- the operation expected value.Copyright © 2013 Object Query. All Rights Reserved.