|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.company.thesandbox.data.spring.dao.PersonDaoImplBase
public class PersonDaoImplBase
Person Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Person objects in the database. All database access is done here.
| 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 |
|---|
public PersonDaoImplBase()
| Method Detail |
|---|
public Person retrieve(long id)
PersonDaoBase
retrieve in interface PersonDaoBaseid - id of the Person to retrieve.
public Person add(Person object)
PersonDaoBase
add in interface PersonDaoBaseobject - the Person to add to the database.
public Person update(Person object)
PersonDaoBase
update in interface PersonDaoBaseobject - the Person to store/update
public void delete(Person object)
PersonDaoBase
delete in interface PersonDaoBaseobject - the Person to deletepublic java.util.List<Person> listAllPersons()
PersonDaoBase
listAllPersons in interface PersonDaoBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||