com.gisgraphy.domain.geoloc.service
Class AbstractGisQuery
java.lang.Object
com.gisgraphy.domain.geoloc.service.AbstractGisQuery
- Direct Known Subclasses:
- FulltextQuery, GeolocQuery
public abstract class AbstractGisQuery
- extends java.lang.Object
An abstract query for all GisQuery. define Output
,
Pagination
, and a placetype
- Author:
- David Masclet
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
pagination
protected Pagination pagination
- See Also:
Pagination
output
protected Output output
- See Also:
Output
AbstractGisQuery
public AbstractGisQuery(Pagination pagination,
Output output)
- Parameters:
pagination
- The Pagination specification, if null : use
defaultoutput
- Output The output specification , if null :
use default
AbstractGisQuery
public AbstractGisQuery()
- Constructor with default Pagination, Output,
and placetype
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getMaxLimitResult
public int getMaxLimitResult()
- Returns:
- the maximum number of results that the query should return
getPagination
public Pagination getPagination()
- Returns:
- the
Pagination
Object
withPagination
public AbstractGisQuery withPagination(Pagination pagination)
- Parameters:
pagination
- the pagination to set. If the pagination is null the
Pagination.DEFAULT_PAGINATION
is used
- Returns:
- The current query to chain methods
- See Also:
Pagination
getOutput
public Output getOutput()
- Returns:
- The
withOutput
public AbstractGisQuery withOutput(Output output)
- Parameters:
output
- The Output
Object to set. If the output is null :
the Output.DEFAULT_OUTPUT
is used
getOutputStyle
public Output.OutputStyle getOutputStyle()
- Returns:
- The verbose style mode
- See Also:
Output.OutputStyle
getFirstPaginationIndex
public int getFirstPaginationIndex()
- Returns:
- The 'from' pagination value
- See Also:
Pagination
getLastPaginationIndex
public int getLastPaginationIndex()
- Returns:
- The 'to' pagination value
- See Also:
Pagination
getMaxNumberOfResults
public int getMaxNumberOfResults()
- Returns:
- The number of results that the query is limited
- See Also:
Pagination
getOutputFormat
public Output.OutputFormat getOutputFormat()
- Returns:
- The output format
- See Also:
Output.OutputFormat
getOutputLanguage
public java.lang.String getOutputLanguage()
- Returns:
- The iso639 Alpha2 LanguageCode that the output results should be
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.