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, 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(SelectQuery<?> order, ProjectionType projectionType, OrderType type)
InternalQueryBuilder
order
in interface InternalQueryBuilder
projectionType
- the gruping function in the order.type
- the type of order.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 projection(SelectQuery<?> projection, ProjectionType type)
InternalQueryBuilder
projection
in interface InternalQueryBuilder
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 void having(SelectQuery<?> 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 void set(PathItem target, Object value)
InternalQueryBuilder
set
in interface InternalQueryBuilder
target
- of the set operation.value
- the value of the operation.public List<Projection> getProjections()
public void init(QueryType type)
InternalQueryBuilder
init
in interface InternalQueryBuilder
type
- the type of the query.public QueryType getQueryType()
public void setType(QueryType type)
public void clear()
InternalQueryBuilder
clear
in interface ConditionElement
clear
in interface InternalQueryBuilder
clear
in class ConditionGroup
Copyright © 2014 Object Query. All rights reserved.