1 /****************************************************************************** 2 * MetaSetsDao.java - Dao interface for the MetaSets 3 * 4 * PicMan - The BuckoSoft Picture Manager in Java 5 * Copyright(c) 2006 - Dick Balaska 6 * 7 */ 8 package com.buckosoft.PicMan.db; 9 10 import org.springframework.dao.DataAccessException; 11 12 import com.buckosoft.PicMan.domain.MetaSet; 13 14 /** Dao interface for the {@link com.buckosoft.PicMan.domain.MetaSet}s. 15 * @author Dick Balaska 16 * @since 2006/07/04 17 */ 18 public interface MetaSetsDao { 19 /** Get the MetaSet that matches this Set ID. 20 * @param sid The SetID to query. 21 * @return The MetaSet 22 */ 23 MetaSet getMetaSet(int sid); 24 25 /** Store this MetaSet to the database. 26 * @param mset The MetaSet to write. 27 */ 28 void storeMetaSet(MetaSet mset); 29 30 /** Delete this MetaSet from the database. 31 * @param mset The MetaSet to delete. 32 * @throws DataAccessException It didn't quite work out. 33 */ 34 void deleteMetaSet(MetaSet mset) throws DataAccessException; 35 36 }