org.springframework.ldap.samples.article.dao
Class TraditionalPersonDaoImpl

java.lang.Object
  extended by 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

Constructor Summary
TraditionalPersonDaoImpl()
           
 
Method Summary
 void create(Person person)
           
 void delete(Person person)
           
 List findAll()
           
 Person findByPrimaryKey(String country, String company, String fullname)
           
 List getAllPersonNames()
           
 void setBase(String base)
           
 void setPassword(String credentials)
           
 void setUrl(String url)
           
 void setUserName(String principal)
           
 void update(Person person)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraditionalPersonDaoImpl

public TraditionalPersonDaoImpl()
Method Detail

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.