|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.opensearch.opensearchlibrary.query.QueryBuilderDecorator
org.gcube.opensearch.opensearchlibrary.query.extensions.geo.GeoQueryBuilder
public class GeoQueryBuilder
Constructor Summary | |
---|---|
GeoQueryBuilder(QueryBuilder qb)
|
Method Summary | |
---|---|
QueryBuilder |
clone()
Returns a copy of this query builder |
java.lang.String |
getQuery()
Retrieves the search query corresponding to the current state of the query builder |
boolean |
isQueryComplete()
Determines whether the query is complete and therefore ready to be issued, i.e. |
static void |
main(java.lang.String[] args)
|
GeoQueryBuilder |
setParameter(java.lang.String name,
java.lang.String value)
Assigns a string value to a parameter of the query builder |
GeoQueryBuilder |
setParameters(java.util.List<java.lang.String> names,
java.util.List<java.lang.Object> values)
Assigns to each parameter contained in the list of the first argument the respective value contained in the list of the secord argument |
QueryBuilder |
setParameters(QueryElement queryEl)
Sets all parameters of the query builder that are also contained in the QueryElement provided with the values contained in the QueryElement |
Methods inherited from class org.gcube.opensearch.opensearchlibrary.query.QueryBuilderDecorator |
---|
getOptionalParameters, getParameterValue, getRawTemplate, getRequiredParameters, getStartIndexDef, getStartPageDef, getUnsetParameters, hasParameter, isParameterSet, setParameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoQueryBuilder(QueryBuilder qb)
Method Detail |
---|
public QueryBuilder clone()
QueryBuilder
clone
in interface QueryBuilder
clone
in class QueryBuilderDecorator
public GeoQueryBuilder setParameter(java.lang.String name, java.lang.String value) throws NonExistentParameterException, java.lang.Exception
setParameter
in interface QueryBuilder
setParameter
in class QueryBuilderDecorator
name
- The qualified name of the parametervalue
- The value to be assigned to the parameter
NonExistentParameterException
- If the parameter is not contained in the parameter set of the query builder
java.lang.Exception
- In case of other errorQueryBuilder.setParameter(String, String)
public GeoQueryBuilder setParameters(java.util.List<java.lang.String> names, java.util.List<java.lang.Object> values) throws NonExistentParameterException, java.lang.Exception
setParameters
in interface QueryBuilder
setParameters
in class QueryBuilderDecorator
names
- A list of parameter qualified namesvalues
- A list of parameter values to be assigned to the respective parameter
NonExistentParameterException
- If a parameter of the list is not contained in the parameter of the query builder
java.lang.Exception
- In case of other errorQueryBuilder.setParameters(List, List)
public boolean isQueryComplete()
isQueryComplete
in interface QueryBuilder
isQueryComplete
in class QueryBuilderDecorator
QueryBuilder.isQueryComplete()
public java.lang.String getQuery() throws IncompleteQueryException, MalformedQueryException, java.lang.Exception
getQuery
in interface QueryBuilder
getQuery
in class QueryBuilderDecorator
IncompleteQueryException
- If the query is not complete, i.e. there still exist unset required parameters
MalformedQueryException
- If the query is malformed, e.g. if a parameter value is not of the correct form
java.lang.Exception
- In case of other errorQueryBuilder.getQuery()
public QueryBuilder setParameters(QueryElement queryEl) throws NonExistentParameterException, java.lang.Exception
setParameters
in interface QueryBuilder
setParameters
in class QueryBuilderDecorator
queryEl
- The query element which will be used to assign values to the parameters of the query builder
java.lang.Exception
- In case of error
NonExistentParameterException
QueryBuilder.setParameters(QueryElement)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |