com.bigllc.retsiq.simpleclient.util
Class NoneSearchStrategy

java.lang.Object
  extended by com.bigllc.retsiq.simpleclient.util.NoneSearchStrategy
All Implemented Interfaces:
SearchStrategy

public class NoneSearchStrategy
extends java.lang.Object
implements SearchStrategy

Search strategy that just executes with limit=NONE. This requires that the server supports and honours the NONE limit.

Author:
Marc G. Smith

Constructor Summary
NoneSearchStrategy()
           
 
Method Summary
 java.util.List<java.lang.String> getQueryBatches(RETSUserSession session, java.lang.String path, java.lang.String query)
          Get a list of queries that break up the original query so that all records for the original query can be retrieved/
 void search(RETSUserSession session, java.lang.String path, java.lang.String query, java.util.List<java.lang.String> fields, boolean decoded, SearchResponseHandler out)
          Execute a search using the strategy implemented to return all the records using multiple queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneSearchStrategy

public NoneSearchStrategy()
Method Detail

getQueryBatches

public java.util.List<java.lang.String> getQueryBatches(RETSUserSession session,
                                                        java.lang.String path,
                                                        java.lang.String query)
                                                 throws RETSClientException
Description copied from interface: SearchStrategy
Get a list of queries that break up the original query so that all records for the original query can be retrieved/

Specified by:
getQueryBatches in interface SearchStrategy
Parameters:
session - the user session to search with
path - the resource and classification to query in the following format - /<Resource>/<Classification>.
query - the DMQL2 query to execute.
Returns:
a list of DMQL2 criteria that can be used one at a time in consecutive searches to retrieve all records.
Throws:
RETSClientException

search

public void search(RETSUserSession session,
                   java.lang.String path,
                   java.lang.String query,
                   java.util.List<java.lang.String> fields,
                   boolean decoded,
                   SearchResponseHandler out)
            throws RETSClientException
Description copied from interface: SearchStrategy
Execute a search using the strategy implemented to return all the records using multiple queries.

Specified by:
search in interface SearchStrategy
Parameters:
session - the user session to search with
path - the resource and classification to query in the following format - /<Resource>/<Classification>.
query - the DMQL2 query to execute.
fields - the fields to return, an empty list or null will fetch all the fields.
decoded - if true lookup values are decoded otherwise raw values are returned.
out - the handler to process the response.
Throws:
RETSClientException