org.springframework.ldap.samples.person.dao
Class CompanyDaoImpl
java.lang.Object
org.springframework.ldap.samples.person.dao.CompanyDaoImpl
- All Implemented Interfaces:
- CompanyDao
public class CompanyDaoImpl
- extends Object
- implements CompanyDao
Default implementation of CompanyDao. 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompanyDaoImpl
public CompanyDaoImpl()
findByCountry
public List findByCountry(String country)
- Specified by:
findByCountry
in interface CompanyDao
setLdapOperations
public void setLdapOperations(LdapOperations ldapOperations)
Copyright © 2006-2009 Spring Framework. All Rights Reserved.