public class GenericInternalQueryBuilder extends ConditionGroup implements InternalQueryBuilder
| Constructor and Description |
|---|
GenericInternalQueryBuilder(GroupType type) |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildPath(PathItem item,
StringBuilder builder) |
static void |
buildPath(PathItem item,
StringBuilder builder,
String separator) |
void |
clear()
Clear all object used for build query and the object can be reused for
build another query.
|
List<Having> |
getHavings() |
List<Order> |
getOrders() |
List<Projection> |
getProjections() |
void |
having(ObjectQuery<?> item,
ProjectionType projectionType,
ConditionType conditionType,
Object value)
Create Add a new having item
|
void |
having(PathItem item,
ProjectionType projectionType,
ConditionType conditionType,
Object value)
Create Add a new having item
|
void |
order(ObjectQuery<?> order,
ProjectionType projectionType,
OrderType type)
Add an sub query order to query.
|
void |
order(PathItem item,
ProjectionType projectionType,
OrderType type)
Add an order to query.
|
void |
projection(ObjectQuery<?> projection,
ProjectionType type)
Add a sub Query projection to query with an operator.
|
void |
projection(PathItem item,
ProjectionType type)
Add a projection to query with an operator.
|
condition, getConditions, getType, newGroupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcondition, newGrouppublic GenericInternalQueryBuilder(GroupType type)
public static void buildPath(PathItem item, StringBuilder builder)
public static void buildPath(PathItem item, StringBuilder builder, String separator)
public void order(ObjectQuery<?> order, ProjectionType projectionType, OrderType type)
InternalQueryBuilderorder in interface InternalQueryBuilderprojectionType - the gruping function in the order.type - the type of order.public void order(PathItem item, ProjectionType projectionType, OrderType type)
InternalQueryBuilderorder in interface InternalQueryBuilderitem - the order to add.projectionType - the gruping function in the order.type - the type of order.public void projection(PathItem item, ProjectionType type)
InternalQueryBuilderprojection in interface InternalQueryBuilderitem - the projection object to add.type - the type of projection to add.public void projection(ObjectQuery<?> projection, ProjectionType type)
InternalQueryBuilderprojection in interface InternalQueryBuildertype - the type of projection to add.public void having(PathItem item, ProjectionType projectionType, ConditionType conditionType, Object value)
InternalQueryBuilderhaving in interface InternalQueryBuilderitem - having operation targetprojectionType - the type of having projection.conditionType - the type of having condition.value - the condition value.public void having(ObjectQuery<?> item, ProjectionType projectionType, ConditionType conditionType, Object value)
InternalQueryBuilderhaving in interface InternalQueryBuilderitem - having operation targetprojectionType - the type of having projection.conditionType - the type of having condition.value - the condition value.public List<Projection> getProjections()
public void clear()
InternalQueryBuilderclear in interface ConditionElementclear in interface InternalQueryBuilderclear in class ConditionGroupCopyright © 2013 Object Query. All Rights Reserved.