net.sf.ldaptemplate.support
Class CountSearchResultCallbackHandler

java.lang.Object
  extended bynet.sf.ldaptemplate.support.CountSearchResultCallbackHandler
All Implemented Interfaces:
SearchResultCallbackHandler

public class CountSearchResultCallbackHandler
extends java.lang.Object
implements SearchResultCallbackHandler

A SearchResultCallbackHandler for counting all returned entries.

Author:
Mattias Arthursson

Constructor Summary
CountSearchResultCallbackHandler()
           
 
Method Summary
 int getNoOfRows()
          Get the number of rows that was returned by the search.
 void handleSearchResult(javax.naming.directory.SearchResult searchResult)
          Handle this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountSearchResultCallbackHandler

public CountSearchResultCallbackHandler()
Method Detail

getNoOfRows

public int getNoOfRows()
Get the number of rows that was returned by the search.

Returns:
the number of entries that have been handled.

handleSearchResult

public void handleSearchResult(javax.naming.directory.SearchResult searchResult)
Description copied from interface: SearchResultCallbackHandler
Handle this entry. This method will be called once for each entry returned by a search or list.

Specified by:
handleSearchResult in interface SearchResultCallbackHandler
Parameters:
searchResult - the searchResult.


Copyright © 2006 Jayway AB. All Rights Reserved.