org.springframework.ldap.samples.person.dao
Class TraditionalPersonDaoImpl
java.lang.Object
org.springframework.ldap.samples.person.dao.TraditionalPersonDaoImpl
- All Implemented Interfaces:
- PersonDao
public class TraditionalPersonDaoImpl
- extends Object
- implements PersonDao
Traditional implementation of PersonDao. This implementation uses the basic
JNDI interfaces and classes DirContext
, Attributes
,
Attribute
, and NamingEnumeration
. The purpose is to
contrast this implementation with that of
PersonDaoImpl
.
- Author:
- Ulrik Sandberg TODO Add search method so we can use a search page
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraditionalPersonDaoImpl
public TraditionalPersonDaoImpl()
create
public void create(Person person)
- Specified by:
create
in interface PersonDao
update
public void update(Person person)
- Specified by:
update
in interface PersonDao
delete
public void delete(Person person)
- Specified by:
delete
in interface PersonDao
findAll
public List findAll()
- Specified by:
findAll
in interface PersonDao
findByPrimaryKey
public Person findByPrimaryKey(String dn)
- Specified by:
findByPrimaryKey
in interface PersonDao
findByPrimaryKeyData
public Person findByPrimaryKeyData(String country,
String company,
String fullname)
- Specified by:
findByPrimaryKeyData
in interface PersonDao
find
public List find(SearchCriteria criteria)
- Specified by:
find
in interface PersonDao
setUrl
public void setUrl(String url)
setBase
public void setBase(String base)
Copyright © 2006-2009 Spring Framework. All Rights Reserved.