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(PathItem item,
ProjectionType projectionType,
ConditionType conditionType,
Object value)
Create Add a new having item
|
void |
order(PathItem item,
ProjectionType projectionType,
OrderType type)
Add an order to query.
|
void |
projection(PathItem item,
ProjectionType type)
Add a projection to query with an operator.
|
condition, getConditions, getType, newGroup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
condition, newGroup
public GenericInternalQueryBuilder(GroupType type)
public static void buildPath(PathItem item, StringBuilder builder)
public static void buildPath(PathItem item, StringBuilder builder, String separator)
public void order(PathItem item, ProjectionType projectionType, OrderType type)
InternalQueryBuilder
order
in interface InternalQueryBuilder
item
- the order to add.projectionType
- the gruping function in the order.type
- the type of order.public void projection(PathItem item, ProjectionType type)
InternalQueryBuilder
projection
in interface InternalQueryBuilder
item
- the projection object to add.type
- the type of projection to add.public void having(PathItem item, ProjectionType projectionType, ConditionType conditionType, Object value)
InternalQueryBuilder
having
in interface InternalQueryBuilder
item
- 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()
InternalQueryBuilder
clear
in interface ConditionElement
clear
in interface InternalQueryBuilder
clear
in class ConditionGroup
Copyright © 2013 Object Query. All Rights Reserved.