public class GenericObjectQuery<T> extends QueryConditionImpl implements ObjectQuery<T>
Constructor and Description |
---|
GenericObjectQuery(Class<T> clazz) |
GenericObjectQuery(InternalQueryBuilder builder,
Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
Boolean |
box(boolean b)
Box a boolean.
|
Byte |
box(byte b)
Box a byte.
|
Character |
box(char c)
Box a char.
|
Double |
box(double d)
Box a double.
|
Float |
box(float f)
Box a float.
|
Integer |
box(int i)
Box an int.
|
Long |
box(long l)
Box an long.
|
Short |
box(short s)
Box an short.
|
void |
clear() |
InternalQueryBuilder |
getBuilder() |
Class<T> |
getTargetClass() |
HavingCondition |
having(Object projection,
ProjectionType type)
Declare an having condition on projection.
|
void |
order(Object order)
Add an order condition to query.
|
void |
order(Object order,
OrderType type)
Add an order to query.
|
void |
order(Object order,
ProjectionType projectionType,
OrderType type)
Add an order to query.
|
void |
prj(Object projection)
Add a projection to query.
|
void |
prj(Object projection,
ProjectionType type)
Add a projection to query with an operator.
|
Object |
proxy(Class<?> clazz,
PathItem parent,
String name) |
T |
target()
Retrieve the instance to build query.
|
and, condition, contains, eq, in, like, likeNc, max, maxEq, min, minEq, notContains, notEq, notIn, notLike, notLikeNc, or
public GenericObjectQuery(InternalQueryBuilder builder, Class<T> clazz)
public T target()
ObjectQuery
target
in interface ObjectQuery<T>
public void prj(Object projection)
ObjectQuery
prj
in interface ObjectQuery<T>
projection
- the projection object to add.public void prj(Object projection, ProjectionType type)
ObjectQuery
prj
in interface ObjectQuery<T>
projection
- the projection object to add.type
- the type of projection to add.public void order(Object order)
ObjectQuery
order
in interface ObjectQuery<T>
order
- the order to add.public void order(Object order, OrderType type)
ObjectQuery
order
in interface ObjectQuery<T>
order
- the order to add.type
- the type of order.public void order(Object order, ProjectionType projectionType, OrderType type)
ObjectQuery
order
in interface ObjectQuery<T>
order
- the order to add.projectionType
- the tipe of projection for grouping actions in order.type
- the type of order.public Boolean box(boolean b)
ObjectQuery
box
in interface ObjectQuery<T>
b
- to boxpublic Byte box(byte b)
ObjectQuery
box
in interface ObjectQuery<T>
b
- to box.public Character box(char c)
ObjectQuery
box
in interface ObjectQuery<T>
c
- to box.public Double box(double d)
ObjectQuery
box
in interface ObjectQuery<T>
d
- to box.public Float box(float f)
ObjectQuery
box
in interface ObjectQuery<T>
f
- to box.public Integer box(int i)
ObjectQuery
box
in interface ObjectQuery<T>
i
- to box.public Long box(long l)
ObjectQuery
box
in interface ObjectQuery<T>
l
- to box.public Short box(short s)
ObjectQuery
box
in interface ObjectQuery<T>
s
- to box.public InternalQueryBuilder getBuilder()
public HavingCondition having(Object projection, ProjectionType type)
ObjectQuery
having
in interface ObjectQuery<T>
projection
- target of condition.type
- grouping operationpublic void clear()
Copyright © 2013 Object Query. All Rights Reserved.