org.company.thesandbox.data.spring.dao
Interface RecordDaoBase

All Known Subinterfaces:
RecordDao
All Known Implementing Classes:
RecordDaoImpl, RecordDaoImplBase

public interface RecordDaoBase

RecordDaoBaseData Access Object (DAO). Responsible for accessing database.

Author:
Mod4j generated

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.
 

Method Detail

retrieve

Record retrieve(long id)
Retrieves a Record by its ID from the database.

Parameters:
id - id of the Record to retrieve.
Returns:
Record retrieved or null when no Record was found.

add

Record add(Record object)
Adds a new Record to the database

Parameters:
object - the Record to add to the database.
Returns:
the stored Record.

update

Record update(Record object)
Stores/Updates the Record in the database. Inclusive all its posts.

Parameters:
object - the Record to store/update
Returns:

delete

void delete(Record object)
Deletes a Record from the database.

Parameters:
object - the Record to delete

listAllRecords

java.util.List<Record> listAllRecords()
Selects all Records from the database.

Returns:
a List of all Record objects.


Copyright © 2010. All Rights Reserved.