Package top.codef.sqlfilter
Class CommonFilter
java.lang.Object
top.codef.sqlfilter.CommonFilter
- Direct Known Subclasses:
TypedCommonFilter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<GroupCondition>
protected final List<JoinCondition>
protected Integer
protected Integer
protected final List<FilterCondition>
protected final List<OrderCondition>
protected final List<SelectCondition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Comparable<T>>
CommonFilterprotected <T> boolean
checkNotNull
(T value) <T> CommonFilter
<T extends Number>
CommonFiltergetList()
<T extends Number>
CommonFilterboolean
hasLimit()
<T> CommonFilter
in
(String field, Collection<T> value) <T> CommonFilter
<T> CommonFilter
<T extends Number>
CommonFilterlimit
(int limit) limit
(int limitStart, int limitCount) <T extends Number>
CommonFilter<T> CommonFilter
<T> CommonFilter
notIn
(String field, Collection<T> value) <T> CommonFilter
orderByAsc
(String... fields) orderByDesc
(String... fields) select
(Collection<String> selectField) select
(SelectCondition... elements) void
setLimitCount
(Integer limitCount) void
setLimitStart
(Integer limitStart) <T> CommonFilter
-
Field Details
-
updatableList
-
list
-
joinList
-
orderList
-
selectors
-
groupingBy
-
limitCount
-
limitStart
-
-
Constructor Details
-
CommonFilter
public CommonFilter()
-
-
Method Details
-
checkNotNull
protected <T> boolean checkNotNull(T value) -
getList
-
getSelectors
-
getJoinList
-
getOrderList
-
getGroupingBy
-
update
-
getUpdatableList
-
eq
-
eqFeild
-
neq
-
neq
-
like
-
isNull
-
isNotNull
-
in
-
in
-
notIn
-
notIn
-
lt
-
le
-
gt
-
ge
-
between
-
orderByAsc
-
orderByDesc
-
groupBy
-
select
-
select
-
select
-
innerJoin
-
leftJoin
-
rightJoin
-
limit
-
limit
-
hasLimit
public boolean hasLimit() -
getLimitCount
- Returns:
- the limitCount
-
setLimitCount
- Parameters:
limitCount
- the limitCount to set
-
getLimitStart
- Returns:
- the limitStart
-
setLimitStart
- Parameters:
limitStart
- the limitStart to set
-