org.springframework.ldap.samples.article.dao
Class TraditionalPersonDaoImpl
java.lang.Object
org.springframework.ldap.samples.article.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:
- Mattias Arthursson, Ulrik Sandberg
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
getAllPersonNames
public List getAllPersonNames()
- Specified by:
getAllPersonNames
in interface PersonDao
findAll
public List findAll()
- Specified by:
findAll
in interface PersonDao
findByPrimaryKey
public Person findByPrimaryKey(String country,
String company,
String fullname)
- Specified by:
findByPrimaryKey
in interface PersonDao
setUrl
public void setUrl(String url)
setBase
public void setBase(String base)
setPassword
public void setPassword(String credentials)
setUserName
public void setUserName(String principal)
Copyright © 2006-2009 Spring Framework. All Rights Reserved.