T - The entity typepublic final class Condition<T extends Entity<?>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Condition.Criteria
Criteria class
|
| Modifier and Type | Method and Description |
|---|---|
Condition<T> |
asc(java.lang.String property)
Set order by asc
|
Condition<T> |
clear()
Clear all criterions, page, size, order and sort values
|
static <E extends Entity<?>> |
create(java.lang.Class<E> type) |
static <E extends Entity<?>> |
create(java.lang.Class<E> type,
int page,
int size) |
Condition<T> |
desc(java.lang.String property)
Set order by desc
|
int |
getPage() |
int |
getSize() |
java.lang.Class<?> |
getType() |
Condition<T> |
page(int page)
Set page parameter
|
Condition<T> |
size(int size)
Set size parameter
|
Condition.Criteria |
where()
Returns
Criteria object |
public Condition(java.lang.Class<T> type)
public static <E extends Entity<?>> Condition<E> create(java.lang.Class<E> type, int page, int size)
public java.lang.Class<?> getType()
public int getPage()
public int getSize()
public Condition<T> page(int page)
page - Page, must great than zeropublic Condition<T> size(int size)
size - Size, must great than zeropublic Condition<T> asc(java.lang.String property)
property - The property name of entitypublic Condition<T> desc(java.lang.String property)
property - The property name of entitypublic Condition.Criteria where()
Criteria objectCriteriaCopyright © 2019. All Rights Reserved.