Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class QueryRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.ImsRequest
      extended by com.esri.gpt.catalog.arcims.HarvestRequest
          extended by com.esri.gpt.catalog.arcims.QueryRequest
Direct Known Subclasses:
ExtendedQueryRequest

public class QueryRequest
extends HarvestRequest

Query request.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcims.ImsRequest
ACTION_STATUS_ERROR, ACTION_STATUS_NONE, ACTION_STATUS_OK, ACTION_STATUS_REPLACED, ACTION_STATUS_UNKNOWN
 
Constructor Summary
QueryRequest()
          Creates instance of the request.
QueryRequest(UsernamePasswordCredentials credentials)
          Creates instance of the request.
 
Method Summary
 void execute()
          Executes query.
 int getMaxRec()
          Gets maximum number of records to query.
 Date getUpdatedAfterDate()
          Gets update date 'after'.
 Date getUpdatedBeforeDate()
          Gets update date 'before'.
 Set<String> getUuids()
          Gets selected uuids.
 void setMaxRec(int maxRec)
          Sets maximum number of records to query.
 void setUpdatedAfterDate(Date updatedAfterDate)
          Sets update date 'after'.
 void setUpdatedBeforeDate(Date updatedBeforeDate)
          Sets update date 'before'.
 
Methods inherited from class com.esri.gpt.catalog.arcims.ImsRequest
executeRequest, executeRequest, getActionStatus, getAxlRequest, getAxlResponse, getCredentials, getService, makeClient, onEndSaxElement, onStartSaxElement, setActionStatus, setAxlRequest, setAxlResponse, setCredentials, setService, wasActionOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryRequest

public QueryRequest()
Creates instance of the request.


QueryRequest

public QueryRequest(UsernamePasswordCredentials credentials)
Creates instance of the request.

Parameters:
credentials - credentials
Method Detail

getMaxRec

public int getMaxRec()
Gets maximum number of records to query.

Returns:
maximum number of records to query, or 0 if no such a limit

setMaxRec

public void setMaxRec(int maxRec)
Sets maximum number of records to query.

Parameters:
maxRec - maximum number of records to query, or 0 if no such a limit

getUpdatedAfterDate

public Date getUpdatedAfterDate()
Gets update date 'after'.

Returns:
date or null if no limit set

setUpdatedAfterDate

public void setUpdatedAfterDate(Date updatedAfterDate)
Sets update date 'after'.

Parameters:
updatedAfterDate - date or null if no limit

getUpdatedBeforeDate

public Date getUpdatedBeforeDate()
Gets update date 'before'.

Returns:
date or null if no limit set

setUpdatedBeforeDate

public void setUpdatedBeforeDate(Date updatedBeforeDate)
Sets update date 'before'.

Parameters:
updatedBeforeDate - date or null if no limit

getUuids

public Set<String> getUuids()
Gets selected uuids.

Returns:
collection of uuids

execute

public void execute()
             throws ImsServiceException
Executes query.

Throws:
ImsServiceException - if error executing query

Esri Geoportal Server
1.0

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