public class ProjectQuery extends Object implements Query
Query
testing the project property.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private List<String> |
_ids |
private Query.Operator |
_operator |
Constructor and Description |
---|
ProjectQuery()
Build a ProjectQuery to test if the project property exits
|
ProjectQuery(Collection<String> ids)
Build a ProjectQuery to test if the project property is equal to one of the given project ids
|
ProjectQuery(Query.Operator operator,
Collection<String> ids)
Build a ProjectQuery.
|
ProjectQuery(Query.Operator operator,
String... ids)
Build a ProjectQuery to test if the project property is equal or different to one of the given project ids
|
ProjectQuery(String... ids)
Build a ProjectQuery to test if the project property is equal to one of the given project ids
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
private Query.Operator _operator
public ProjectQuery()
public ProjectQuery(String... ids)
ids
- the project ids.public ProjectQuery(Collection<String> ids)
ids
- the project ids.public ProjectQuery(Query.Operator operator, String... ids)
operator
- the operator (equal ot not-equal)ids
- the project ids.public ProjectQuery(Query.Operator operator, Collection<String> ids)
operator
- the operator.ids
- the project ids.public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.