Esri Geoportal Server
1.0

com.esri.gpt.framework.request
Class QueryResult<RT extends Records<? extends Record>>

java.lang.Object
  extended by com.esri.gpt.framework.request.Result
      extended by com.esri.gpt.framework.request.QueryResult<RT>
Direct Known Subclasses:
CswResult, HeQueryResult, HjQueryResult, HrQueryResult, MmdQueryResult, SearchResult

public class QueryResult<RT extends Records<? extends Record>>
extends Result

Represents the result associated with a query.


generic: RT represents the records type


Constructor Summary
QueryResult()
          Default constructor.
QueryResult(RT records)
          Constructs with a supplied result record collection.
 
Method Summary
 boolean getHasRecords()
          Determines if the result has records.
 int getMaxQueryHits()
          Gets the max query hits.
 PageCursor getPageCursor()
          Gets the UI page cursor.
 RT getRecords()
          Gets the records associated with the result.
 void reset()
          Resets the result.
 void setMaxQueryHits(int maxQueryHits)
          Sets the max query hits.
protected  void setPageCursor(PageCursor cursor)
          Sets the UI page cursor.
 void setRecords(RT records)
          Sets the records associated with the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult()
Default constructor.


QueryResult

public QueryResult(RT records)
Constructs with a supplied result record collection.

Parameters:
records - the records
Method Detail

getMaxQueryHits

public int getMaxQueryHits()
Gets the max query hits. Gets value from records object.

Returns:
the max query hits

setMaxQueryHits

public void setMaxQueryHits(int maxQueryHits)
Sets the max query hits. Sets the value in the records object.

Parameters:
maxQueryHits - the new max query hits

getHasRecords

public boolean getHasRecords()
Determines if the result has records.

Returns:
true if the result has records

getPageCursor

public PageCursor getPageCursor()
Gets the UI page cursor.

Returns:
the page cursor

setPageCursor

protected void setPageCursor(PageCursor cursor)
Sets the UI page cursor.

Parameters:
cursor - the page cursor

getRecords

public RT getRecords()
Gets the records associated with the result.

Returns:
the records

setRecords

public void setRecords(RT records)
Sets the records associated with the result.

Parameters:
records - the records

reset

public void reset()
Resets the result.

Specified by:
reset in class Result

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.