Coverage Report - com.buckosoft.PicMan.db.MosaicsDao
 
Classes in this File Line Coverage Branch Coverage Complexity
MosaicsDao
N/A
N/A
1
 
 1  
 /******************************************************************************
 2  
  * MosaicsDao.java - Dao interface for the Mosaics
 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.Mosaic;
 13  
 
 14  
 /** Dao interface for the {@link com.buckosoft.PicMan.domain.Mosaic}s.
 15  
  * @author Dick Balaska
 16  
  * @since 2008/02/14
 17  
  * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/db/MosaicsDao.java">MosaicsDao.java</a>
 18  
  */
 19  
 public interface MosaicsDao {
 20  
         /** Get a List of all of the <code>Mosaic</code>s in the database.
 21  
          * @return The List of Mosaics
 22  
          */
 23  
         List<Mosaic>        getMosaics();
 24  
         
 25  
         /** Get a Mosaic from the database based on this Mosaic ID.
 26  
          * @param mid The Mosaic ID to query.
 27  
          * @return The Mosaic that matches this mid, or null if not found.
 28  
          */
 29  
         Mosaic                        getMosaic(int mid);
 30  
         
 31  
         /** Find the {@link com.buckosoft.PicMan.domain.Mosaic} in the database that matches these parameters.
 32  
          * @param masterPic
 33  
          * @param engine
 34  
          * @param sid
 35  
          * @param tileHeight
 36  
          * @return The mosaic that matches these parameters, or null if not found.
 37  
          */
 38  
         Mosaic                        getMosaic(String masterPic, String engine, int sid, int tileHeight);
 39  
 
 40  
         /** Store this <code>Mosaic</code> in the database.
 41  
          * @param mosaic The Mosaic to store.
 42  
          */
 43  
         void                        storeMosaic(Mosaic mosaic);
 44  
 
 45  
         /** Delete the <code>Mosaic</code> from the database that has this Mosaic ID.
 46  
          * @param mid The Mosaic ID to delete.
 47  
          */ 
 48  
         void                        deleteMosaic(int mid);
 49  
         
 50  
 }