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

All Known Subinterfaces:
PersonDao
All Known Implementing Classes:
PersonDaoImpl, PersonDaoImplBase

public interface PersonDaoBase

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

Author:
Mod4j generated

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.
 

Method Detail

retrieve

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

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

add

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

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

update

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

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

delete

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

Parameters:
object - the Person to delete

listAllPersons

java.util.List<Person> listAllPersons()
Selects all Persons from the database.

Returns:
a List of all Person objects.


Copyright © 2010. All Rights Reserved.