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

All Known Subinterfaces:
ArtistDao
All Known Implementing Classes:
ArtistDaoImpl, ArtistDaoImplBase

public interface ArtistDaoBase

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

Author:
Mod4j generated

Method Summary
 Artist add(Artist object)
          Adds a new Artist to the database
 void delete(Artist object)
          Deletes a Artist from the database.
 java.util.List<Artist> listAllArtists()
          Selects all Artists from the database.
 Artist retrieve(long id)
          Retrieves a Artist by its ID from the database.
 Artist update(Artist object)
          Stores/Updates the Artist in the database.
 

Method Detail

retrieve

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

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

add

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

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

update

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

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

delete

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

Parameters:
object - the Artist to delete

listAllArtists

java.util.List<Artist> listAllArtists()
Selects all Artists from the database.

Returns:
a List of all Artist objects.


Copyright © 2010. All Rights Reserved.