public class GenericObjectQuery<T> extends QueryConditionImpl implements ObjectQuery<T>
| Constructor and Description |
|---|
GenericObjectQuery(Class<T> targetClass) |
GenericObjectQuery(InternalQueryBuilder builder,
Class<T> targetClass) |
| 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() |
List<Join> |
getJoins() |
PathItem |
getRootPathItem() |
Class<T> |
getTargetClass() |
HavingCondition |
having(Object projection,
ProjectionType type)
Declare an having condition on projection.
|
boolean |
isSubQuery() |
<J> J |
join(Class<J> joinClass)
Create a join object with the specified type
|
<J> J |
join(Class<J> joinClass,
JoinType type)
Create a join object with the specified type
|
<J> J |
join(J joinPath,
Class<J> joinClass)
Create a join object with the specified type, on the specified base path
|
<J> J |
join(J joinPath,
Class<J> joinClass,
JoinType type)
Create a join object with the specified type, on the specified base path
|
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) |
<S> ObjectQuery<S> |
subQuery(Class<S> targetClass)
Create a new Sub Query of current query.
|
T |
target()
Retrieve the instance to build query.
|
and, between, condition, contains, contains, eq, eq, gt, gt, gtEq, gtEq, in, in, like, likeNc, lt, lt, ltEq, ltEq, max, max, maxEq, maxEq, min, min, minEq, minEq, notContains, notContains, notEq, notEq, notIn, notIn, notLike, notLikeNc, orpublic GenericObjectQuery(InternalQueryBuilder builder, Class<T> targetClass)
public T target()
ObjectQuerytarget in interface ObjectQuery<T>public void prj(Object projection)
ObjectQueryprj in interface ObjectQuery<T>projection - the projection object to add.public void prj(Object projection, ProjectionType type)
ObjectQueryprj in interface ObjectQuery<T>projection - the projection object to add.type - the type of projection to add.public void order(Object order)
ObjectQueryorder in interface ObjectQuery<T>order - the order to add.public void order(Object order, OrderType type)
ObjectQueryorder in interface ObjectQuery<T>order - the order to add.type - the type of order.public void order(Object order, ProjectionType projectionType, OrderType type)
ObjectQueryorder 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)
ObjectQuerybox in interface ObjectQuery<T>b - to boxpublic Byte box(byte b)
ObjectQuerybox in interface ObjectQuery<T>b - to box.public Character box(char c)
ObjectQuerybox in interface ObjectQuery<T>c - to box.public Double box(double d)
ObjectQuerybox in interface ObjectQuery<T>d - to box.public Float box(float f)
ObjectQuerybox in interface ObjectQuery<T>f - to box.public Integer box(int i)
ObjectQuerybox in interface ObjectQuery<T>i - to box.public Long box(long l)
ObjectQuerybox in interface ObjectQuery<T>l - to box.public Short box(short s)
ObjectQuerybox in interface ObjectQuery<T>s - to box.public InternalQueryBuilder getBuilder()
public HavingCondition having(Object projection, ProjectionType type)
ObjectQueryhaving in interface ObjectQuery<T>projection - target of condition.type - grouping operationpublic PathItem getRootPathItem()
public void clear()
public boolean isSubQuery()
public <S> ObjectQuery<S> subQuery(Class<S> targetClass)
ObjectQuerysubQuery in interface ObjectQuery<T>targetClass - class target of sub query.public <J> J join(Class<J> joinClass)
ObjectQueryjoin in interface ObjectQuery<T>joinClass - the type of the join object.public <J> J join(Class<J> joinClass, JoinType type)
ObjectQueryjoin in interface ObjectQuery<T>joinClass - the type of the join object.public <J> J join(J joinPath,
Class<J> joinClass)
ObjectQueryjoin in interface ObjectQuery<T>joinPath - the path to reach the base object.joinClass - the type of the join object.public <J> J join(J joinPath,
Class<J> joinClass,
JoinType type)
ObjectQueryjoin in interface ObjectQuery<T>joinPath - the path to reach the base object.joinClass - the type of the join object.Copyright © 2013 Object Query. All Rights Reserved.