|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bigllc.retsiq.simpleclient.ColumnRenameResponseHandler
public class ColumnRenameResponseHandler
Search handler that allows column names to be renamed. Accepts a delegate handler and mappings. If a mapping doesn't exist then the original column header will be used.
| Constructor Summary | |
|---|---|
ColumnRenameResponseHandler(SearchResponseHandler delegate,
java.util.Map<java.lang.String,java.lang.String> mappings)
Construct a column rename response handler. |
|
| Method Summary | |
|---|---|
void |
columns(java.util.List<java.lang.String> columns)
If results are returned then this method is called with the column headers returned. |
void |
count(int count)
If a count was returned in the search response. |
void |
data(java.util.List<java.lang.String> data)
If results are returned then the this method is called for each record returned. |
void |
delimiter(java.lang.String hex)
If a delimiter is specified in the response then this method is called with the byte delimiter as hexidecimal string. |
void |
done()
On completion of processing of the search results or if a parsing error occurs then this called. |
java.lang.String |
getPath()
Get the path requested for the search. |
java.lang.String |
getQuery()
Get the query requested for the search. |
int |
getRecordsInResponse()
Return the number of records processed in this search response. |
java.util.List<java.lang.String> |
getSelect()
Get the columns requested for the search. |
RETSUserSession |
getSession()
Get the user session used for the search. |
void |
hasMoreData()
If the results returned have been limited by either the user or the server and more results are available then this method will be called. |
void |
noRecordsFound()
Callback when search was successful but specifically no records were found. |
void |
responseCode(int code,
java.lang.String text,
java.lang.String description)
Callback for search RETS response code. |
void |
setContext(RETSUserSession session,
java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> select)
Set the search context for the results being parsed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnRenameResponseHandler(SearchResponseHandler delegate,
java.util.Map<java.lang.String,java.lang.String> mappings)
| Method Detail |
|---|
public void columns(java.util.List<java.lang.String> columns)
throws RETSClientException
SearchResponseHandler
columns in interface SearchResponseHandlercolumns - A list of column names.
RETSClientExceptionSearchResponseHandler.columns(List)public void count(int count)
SearchResponseHandler
count in interface SearchResponseHandlerSearchResponseHandler.count(int)
public void data(java.util.List<java.lang.String> data)
throws RETSClientException
SearchResponseHandler
data in interface SearchResponseHandlerdata - A list of the record fields.
RETSClientExceptionSearchResponseHandler.data(List)public void delimiter(java.lang.String hex)
SearchResponseHandler
delimiter in interface SearchResponseHandlerhex - The byte delimiter as a hexidecimal string.SearchResponseHandler.delimiter(String)public void done()
SearchResponseHandler
done in interface SearchResponseHandlerSearchResponseHandler.done()public java.lang.String getPath()
SearchResponseHandler
getPath in interface SearchResponseHandlerSearchResponseHandler.getPath()public java.lang.String getQuery()
SearchResponseHandler
getQuery in interface SearchResponseHandlerSearchResponseHandler.getQuery()public java.util.List<java.lang.String> getSelect()
SearchResponseHandler
getSelect in interface SearchResponseHandlerSearchResponseHandler.getSelect()public RETSUserSession getSession()
SearchResponseHandler
getSession in interface SearchResponseHandlerSearchResponseHandler.getSession()public void hasMoreData()
SearchResponseHandler
hasMoreData in interface SearchResponseHandlerSearchResponseHandler.hasMoreData()public void noRecordsFound()
SearchResponseHandler
noRecordsFound in interface SearchResponseHandlerSearchResponseHandler.noRecordsFound()
public void responseCode(int code,
java.lang.String text,
java.lang.String description)
SearchResponseHandler
responseCode in interface SearchResponseHandlercode - The RETS response code.text - The text associated with the response code.description - An associated long description of the response code.SearchResponseHandler.responseCode(int, String, String)
public void setContext(RETSUserSession session,
java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> select)
SearchResponseHandler
setContext in interface SearchResponseHandlersession - The user session.path - The search path.query - The DMQL2 query.select - The columns selected to be returned or null for all.SearchResponseHandler.setContext(RETSUserSession, String, String, List)public int getRecordsInResponse()
SearchResponseHandler
getRecordsInResponse in interface SearchResponseHandlerSearchResponseHandler.getRecordsInResponse()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||