org.springframework.ldap.support
Class CountNameClassPairCallbackHandler

java.lang.Object
  extended by org.springframework.ldap.support.CountNameClassPairCallbackHandler
All Implemented Interfaces:
NameClassPairCallbackHandler

public class CountNameClassPairCallbackHandler
extends java.lang.Object
implements NameClassPairCallbackHandler

A NameClassPairCallbackHandler for counting all returned entries.

Author:
Mattias Arthursson

Constructor Summary
CountNameClassPairCallbackHandler()
           
 
Method Summary
 int getNoOfRows()
          Get the number of rows that was returned by the search.
 void handleNameClassPair(javax.naming.NameClassPair nameClassPair)
          Handle one entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountNameClassPairCallbackHandler

public CountNameClassPairCallbackHandler()
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.

handleNameClassPair

public void handleNameClassPair(javax.naming.NameClassPair nameClassPair)
Description copied from interface: NameClassPairCallbackHandler
Handle one entry. This method will be called once for each entry returned by a search or list.

Specified by:
handleNameClassPair in interface NameClassPairCallbackHandler
Parameters:
nameClassPair - the NameClassPair returned from the NamingEnumeration.


Copyright 2002-2006. All Rights Reserved.