View Javadoc
1   /******************************************************************************
2    * MosaicVectorsDao.java - Dao interface for the MosaicVectors
3    * 
4    * PicMan - The BuckoSoft Picture Manager in Java
5    * Copyright(c) 2007 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.PicMan.db;
9   
10  import java.util.List;
11  
12  import com.buckosoft.PicMan.domain.Pic;
13  import com.buckosoft.PicMan.domain.mosaic.MosaicVector;
14  
15  /** Dao interface for the {@link com.buckosoft.PicMan.domain.mosaic.MosaicVector}s. <br>
16   * Note that this is still experimental and unfinished, no deleting, which would be necessary.
17   * @author Dick Balaska
18   * @since 2007/12/14
19   * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/db/MosaicVectorsDao.java">MosaicVectorsDao.java</a>
20   */
21  public interface MosaicVectorsDao {
22  
23  	/** Store this <code>MosaicVector</code> in the database.
24  	 * @param mv The MosaicVector to store.
25  	 */
26  	void updateMosaicVector(MosaicVector mv);
27  	
28  	/** Fetch the <code>MosaicVector</code> for the Pic specified by this picName
29  	 * @param picName The name of the Pic to query.
30  	 * @return The MosaicVector that matches this picName, or null if not found.
31  	 */
32  	MosaicVector getMosaicVector(String picName);
33  
34  	/** Get the List of <code>MosaicVector</code>s that matches this picList, which probably came from a mosaic Set.
35  	 * @param picList The List of Pics to query
36  	 * @return The matching List of <code>MosaicVector</code>s.  The List may be empty, but not null.
37  	 */
38  	List<MosaicVector>	getMosaicVectors(List<Pic> picList);
39  }