org.springframework.ldap.samples.person.dao
Class CountryDaoImpl

java.lang.Object
  extended by org.springframework.ldap.samples.person.dao.CountryDaoImpl
All Implemented Interfaces:
CountryDao

public class CountryDaoImpl
extends Object
implements CountryDao

Default implementation of CountryDao. This implementation uses DirContextOperations (DirContextAdapter really, but for mock testing purposes we use the interface) for managing attribute values. It has been specified in the Spring Context that the DirObjectFactory should be used when creating objects from contexts, which defaults to creating DirContextAdapter objects. This means that we can use a ContextMapper to map from the found contexts to our domain objects.

Author:
Ulrik Sandberg

Constructor Summary
CountryDaoImpl()
           
 
Method Summary
 List findAll()
           
 void setLdapOperations(LdapOperations ldapOperations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryDaoImpl

public CountryDaoImpl()
Method Detail

findAll

public List findAll()
Specified by:
findAll in interface CountryDao

setLdapOperations

public void setLdapOperations(LdapOperations ldapOperations)


Copyright © 2006-2011 Spring Framework. All Rights Reserved.