1 /**
2 * Generated by Mod4j at Mon Oct 20 22:16:44 CEST 2008
3 */
4 package org.company.thesandbox.data.spring.dao;
5
6 import java.util.List;
7
8 import org.company.thesandbox.domain.Artist;
9
10 /**
11 * ArtistDaoBaseData Access Object (DAO). Responsible for accessing database.
12 *
13 * @author Mod4j generated
14 *
15 */
16 public interface ArtistDaoBase {
17
18 /**
19 * Retrieves a Artist by its ID from the database.
20 *
21 * @param id
22 * id of the Artist to retrieve.
23 * @return Artist retrieved or null when no Artist was found.
24 */
25 Artist retrieve(long id);
26
27 /**
28 * Adds a new Artist to the database
29 *
30 * @param object
31 * the Artist to add to the database.
32 * @return the stored Artist.
33 */
34 Artist add(Artist object);
35
36 /**
37 * Stores/Updates the Artist in the database. Inclusive all its posts.
38 *
39 * @param object
40 * the Artist to store/update
41 * @return
42 */
43 Artist update(Artist object);
44
45 /**
46 * Deletes a Artist from the database.
47 *
48 * @param object
49 * the Artist to delete
50 */
51 void delete(Artist object);
52
53 /**
54 * Selects all Artists from the database.
55 *
56 * @return a List of all Artist objects.
57 */
58 List<Artist> listAllArtists();
59 }