org.company.thesandbox.data.spring.dao
Class PersonDaoImplBase

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.company.thesandbox.data.spring.dao.PersonDaoImplBase
All Implemented Interfaces:
PersonDaoBase, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
PersonDaoImpl

public class PersonDaoImplBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements PersonDaoBase

Person Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Person objects in the database. All database access is done here.

Author:
Generated by Mod4j

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PersonDaoImplBase()
           
 
Method Summary
 Person add(Person object)
          Adds a new Person to the database
 void delete(Person object)
          Deletes a Person from the database.
 java.util.List<Person> listAllPersons()
          Selects all Persons from the database.
 Person retrieve(long id)
          Retrieves a Person by its ID from the database.
 Person update(Person object)
          Stores/Updates the Person in the database.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonDaoImplBase

public PersonDaoImplBase()
Method Detail

retrieve

public Person retrieve(long id)
Description copied from interface: PersonDaoBase
Retrieves a Person by its ID from the database.

Specified by:
retrieve in interface PersonDaoBase
Parameters:
id - id of the Person to retrieve.
Returns:
Person retrieved or null when no Person was found.

add

public Person add(Person object)
Description copied from interface: PersonDaoBase
Adds a new Person to the database

Specified by:
add in interface PersonDaoBase
Parameters:
object - the Person to add to the database.
Returns:
the stored Person.

update

public Person update(Person object)
Description copied from interface: PersonDaoBase
Stores/Updates the Person in the database. Inclusive all its posts.

Specified by:
update in interface PersonDaoBase
Parameters:
object - the Person to store/update
Returns:

delete

public void delete(Person object)
Description copied from interface: PersonDaoBase
Deletes a Person from the database.

Specified by:
delete in interface PersonDaoBase
Parameters:
object - the Person to delete

listAllPersons

public java.util.List<Person> listAllPersons()
Description copied from interface: PersonDaoBase
Selects all Persons from the database.

Specified by:
listAllPersons in interface PersonDaoBase
Returns:
a List of all Person objects.


Copyright © 2010. All Rights Reserved.