public class EntityQuery
extends java.lang.Object
Constructor and Description |
---|
EntityQuery() |
EntityQuery(EntityQuery query)
Copy constructor
|
EntityQuery(java.lang.String json)
Materializes the serialized json representation of an EntityQuery.
|
Modifier and Type | Method and Description |
---|---|
EntityQuery |
enableInlineCount(boolean inlineCountEnabled)
Return a new query based on this query that either adds or removes the inline count capability.
|
EntityQuery |
expand(java.util.List<java.lang.String> propertyPaths)
Return a new query based on this query with the specified expand clauses added.
|
EntityQuery |
expand(java.lang.String... propertyPaths)
Return a new query based on this query with the specified expand clauses added.
|
IEntityType |
getEntityType()
Returns the EntityType that this query has been validated against.
|
ExpandClause |
getExpandClause() |
OrderByClause |
getOrderByClause() |
java.util.Map |
getParameters() |
java.lang.String |
getResourceName() |
SelectClause |
getSelectClause() |
java.lang.Integer |
getSkipCount() |
java.lang.Integer |
getTakeCount() |
Predicate |
getWherePredicate() |
boolean |
isInlineCountEnabled() |
EntityQuery |
orderBy(java.util.List<java.lang.String> propertyPaths)
Return a new query based on this query with the specified orderBy clauses added.
|
EntityQuery |
orderBy(java.lang.String... propertyPaths)
Return a new query based on this query with the specified orderBy clauses added.
|
EntityQuery |
select(java.util.List<java.lang.String> propertyPaths)
Return a new query based on this query with the specified select (projection) clauses added.
|
EntityQuery |
select(java.lang.String... propertyPaths)
Return a new query based on this query with the specified select (projection) clauses added.
|
EntityQuery |
skip(java.lang.Integer skipCount)
Return a new query based on this query that skips the first n records.
|
EntityQuery |
take(java.lang.Integer takeCount)
Return a new query based on this query that limits the results to the first n records.
|
void |
validate(IEntityType entityType)
Validates that all of the clauses that make up this query are consistent with the
specified EntityType.
|
EntityQuery |
where(Predicate predicate)
Return a new query based on this query with an additional where clause added.
|
EntityQuery |
where(java.lang.String json)
Return a new query based on this query with an additional where clause added.
|
EntityQuery |
withResourceName(java.lang.String resourceName)
Return a new query based on this query with the specified resourceName
|
public EntityQuery()
public EntityQuery(java.lang.String json)
json
- The serialized json version of the EntityQuery.public EntityQuery(EntityQuery query)
query
- public EntityQuery where(java.lang.String json)
json
- Json representation of the where clause.public EntityQuery where(Predicate predicate)
predicate
- A Predicate representing the where clause to add.public EntityQuery orderBy(java.lang.String... propertyPaths)
propertyPaths
- A varargs array of orderBy clauses ( each consisting of a property path and an optional sort direction).public EntityQuery orderBy(java.util.List<java.lang.String> propertyPaths)
propertyPaths
- An List of orderBy clauses ( each consisting of a property path and an optional sort direction).public EntityQuery expand(java.lang.String... propertyPaths)
propertyPaths
- A varargs array of expand clauses ( each a dot delimited property path).public EntityQuery expand(java.util.List<java.lang.String> propertyPaths)
propertyPaths
- A list of expand clauses (each a dot delimited property path).public EntityQuery select(java.lang.String... propertyPaths)
propertyPaths
- A varargs array of select clauses (each a dot delimited property path).public EntityQuery select(java.util.List<java.lang.String> propertyPaths)
propertyPaths
- A list of select clauses (each a dot delimited property path).public EntityQuery take(java.lang.Integer takeCount)
takeCount
- The number of records to take.public EntityQuery skip(java.lang.Integer skipCount)
skipCount
- The number of records to skip.public EntityQuery enableInlineCount(boolean inlineCountEnabled)
inlineCountEnabled
- Whether to enable inlineCount.public EntityQuery withResourceName(java.lang.String resourceName)
resourceName
- The name of the url resource.public void validate(IEntityType entityType)
entityType
- A EntityTypepublic IEntityType getEntityType()
public java.lang.String getResourceName()
public Predicate getWherePredicate()
public OrderByClause getOrderByClause()
public ExpandClause getExpandClause()
public SelectClause getSelectClause()
public java.lang.Integer getSkipCount()
public java.lang.Integer getTakeCount()
public boolean isInlineCountEnabled()
public java.util.Map getParameters()