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

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

Constructor Summary
TraditionalPersonDaoImpl()
           
 
Method Summary
 void create(Person person)
           
 void delete(Person person)
           
 List find(SearchCriteria criteria)
           
 List findAll()
           
 Person findByPrimaryKey(String dn)
           
 Person findByPrimaryKeyData(String country, String company, String fullname)
           
 void setBase(String base)
           
 void setUrl(String url)
           
 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

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.