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() |
QueryType |
getQueryType() |
List<SetValue> |
getSets() |
void |
having(PathItem item,
ProjectionType projectionType,
ConditionType conditionType,
Object value)
Create Add a new having item
|
void |
having(SelectQuery<?> item,
ProjectionType projectionType,
ConditionType conditionType,
Object value)
Create Add a new having item
|
void |
init(QueryType type)
Initialize the current builder for the specified query type.
|
void |
order(PathItem item,
ProjectionType projectionType,
OrderType type)
Add an order to query.
|
void |
order(SelectQuery<?> order,
ProjectionType projectionType,
OrderType type)
Add an sub query order to query.
|
void |
projection(PathItem item,
ProjectionType type)
Add a projection to query with an operator.
|
void |
projection(SelectQuery<?> projection,
ProjectionType type)
Add a sub Query projection to query with an operator.
|
void |
set(PathItem target,
Object value)
Create and add a new set Item.
|
void |
setType(QueryType type) |
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(SelectQuery<?> 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(SelectQuery<?> 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(SelectQuery<?> 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 set(PathItem target, Object value)
InternalQueryBuilderset in interface InternalQueryBuildertarget - of the set operation.value - the value of the operation.public List<Projection> getProjections()
public void init(QueryType type)
InternalQueryBuilderinit in interface InternalQueryBuildertype - the type of the query.public QueryType getQueryType()
public void setType(QueryType type)
public void clear()
InternalQueryBuilderclear in interface ConditionElementclear in interface InternalQueryBuilderclear in class ConditionGroupCopyright © 2014 Object Query. All rights reserved.