View Javadoc
1   /******************************************************************************
2    * MosaicBatchesDao.java - Dao interface for the MosaicBatches
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2008 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.db;
9   
10  import java.util.List;
11  
12  import com.buckosoft.PicMan.domain.MosaicBatch;
13  
14  /** Dao interface for the {@link com.buckosoft.PicMan.domain.MosaicBatch}s. <br>
15   * @author Dick Balaska
16   * @since 2008/09/16
17   * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/db/MosaicBatchDao.java">MosaicBatchDao.java</a>
18   */
19  public interface MosaicBatchesDao {
20  	/** Get the List of <code>MosaicBatch</code>s.
21  	 * @return The List of MosaicBatch
22  	 */
23  	List<MosaicBatch>	getMosaicBatches();
24  	
25  	/** Get a MosaicBatch from the database based on this MosaicBatch ID.
26  	 * @param mbid The MosaicBatch ID to query.
27  	 * @return The MosaicBatch that matches this mid, or null if not found.
28  	 */
29  	MosaicBatch			getMosaicBatch(int mbid);
30  	
31  	/** Store this <code>MosaicBatch</code> in the database.
32  	 * @param mbatch The MosaicBatch to store.
33  	 */
34  	void				storeMosaicBatch(MosaicBatch mbatch);
35  
36  	/** Delete the <code>MosaicBatch</code>s for the Mosaic specified by this Mosaic ID.
37  	 * @param mbid The Mosaic BatchID to delete.
38  	 */
39  	void				deleteMosaicBatch(int mbid);
40  	
41  }