1 /******************************************************************************
2 * PostersDao.java - Dao interface for the Posters
3 *
4 * PicMan - The BuckoSoft Picture Manager in Java
5 * Copyright(c) 2012 - Dick Balaska
6 *
7 */
8 package com.buckosoft.PicMan.db;
9
10 import java.util.List;
11
12 import com.buckosoft.PicMan.domain.Poster;
13
14 /** Dao interface for the {@link com.buckosoft.PicMan.domain.Poster}s.
15 * @author Dick Balaska
16 * @since 2012/07/22
17 * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/db/PostersDao.java">PostersDao.java</a>
18 */
19 public interface PostersDao {
20 /** Get a List of all of the <code>Mosaic</code>s in the database.
21 * @return The List of Mosaics
22 */
23 List<Poster> getPosters();
24
25 /** Get a Poster from the database based on this Poster ID.
26 * @param pid The Poster ID to query.
27 * @return The Mosaic that matches this mid, or null if not found.
28 */
29 Poster getPoster(int pid);
30
31 /** Store this <code>Mosaic</code> in the database.
32 * @param mosaic The Mosaic to store.
33 */
34 void storePoster(Poster mosaic);
35
36 /** Delete the <code>Mosaic</code> from the database that has this Mosaic ID.
37 * @param pid The Poster ID to delete.
38 */
39 void deletePoster(int pid);
40
41 }