|
||||||||||
| 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.CustomerDaoImplBase
public class CustomerDaoImplBase
Customer Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Customer objects in the database. All database access is done here.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
CustomerDaoImplBase()
|
|
| Method Summary | |
|---|---|
Customer |
add(Customer object)
Adds a new Customer to the database |
void |
delete(Customer object)
Deletes a Customer from the database. |
java.util.List<Customer> |
listAllCustomers()
Selects all Customers from the database. |
Customer |
retrieve(long id)
Retrieves a Customer by its ID from the database. |
Customer |
update(Customer object)
Stores/Updates the Customer 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 CustomerDaoImplBase()
| Method Detail |
|---|
public Customer retrieve(long id)
CustomerDaoBase
retrieve in interface CustomerDaoBaseid - id of the Customer to retrieve.
public Customer add(Customer object)
CustomerDaoBase
add in interface CustomerDaoBaseobject - the Customer to add to the database.
public Customer update(Customer object)
CustomerDaoBase
update in interface CustomerDaoBaseobject - the Customer to store/update
public void delete(Customer object)
CustomerDaoBase
delete in interface CustomerDaoBaseobject - the Customer to deletepublic java.util.List<Customer> listAllCustomers()
CustomerDaoBase
listAllCustomers in interface CustomerDaoBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||