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

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.RecordDaoImplBase
All Implemented Interfaces:
RecordDaoBase, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
RecordDaoImpl

public class RecordDaoImplBase
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements RecordDaoBase

Record Data Access Object (DOA) Implementation. Responsible for Creating, Reading, Updating and Deleting Record 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
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

RecordDaoImplBase

public RecordDaoImplBase()
Method Detail

retrieve

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

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

add

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

Specified by:
add in interface RecordDaoBase
Parameters:
object - the Record to add to the database.
Returns:
the stored Record.

update

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

Specified by:
update in interface RecordDaoBase
Parameters:
object - the Record to store/update
Returns:

delete

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

Specified by:
delete in interface RecordDaoBase
Parameters:
object - the Record to delete

listAllRecords

public java.util.List<Record> listAllRecords()
Description copied from interface: RecordDaoBase
Selects all Records from the database.

Specified by:
listAllRecords in interface RecordDaoBase
Returns:
a List of all Record objects.


Copyright © 2010. All Rights Reserved.