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