Coverage Report - org.jtheque.films.persistence.dao.able.IDaoRealizers
 
Classes in this File Line Coverage Branch Coverage Complexity
IDaoRealizers
N/A
N/A
1
 
 1  
 package org.jtheque.films.persistence.dao.able;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.managers.persistence.able.JThequeDao;
 20  
 import org.jtheque.films.persistence.od.RealizerImpl;
 21  
 
 22  
 import java.util.List;
 23  
 
 24  
 /**
 25  
  * A DAO for realizers specification.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  
 public interface IDaoRealizers extends JThequeDao {
 30  
     String TABLE = "T_FILM_REALIZERS";
 31  
 
 32  
     /**
 33  
      * Cette m�thode retourne l'ensemble des r�alisateurs du programme.
 34  
      *
 35  
      * @return La liste des r�alisateurs
 36  
      */
 37  
     List<RealizerImpl> getRealizers();
 38  
 
 39  
     /**
 40  
      * Indicate if the realizer exist in the Dao.
 41  
      *
 42  
      * @param realizer The realizer we must test if it's exist.
 43  
      * @return <code>true</code> if the realizer exist else <code>false</code>.
 44  
      */
 45  
     boolean exist(RealizerImpl realizer);
 46  
 
 47  
     /**
 48  
      * Cette m�thode permet de r�cup�rer un r�alisateur � partir de son ID. Si les r�alisateurs ne sont pas encore
 49  
      * mont�s en RAM, on le fait.
 50  
      *
 51  
      * @param id L'id du r�alisateur � r�cup�rer
 52  
      * @return Le r�alisateur qui correspond � cet ID
 53  
      */
 54  
     RealizerImpl getRealizer(int id);
 55  
 
 56  
     /**
 57  
      * Cette m�thode permet de r�cup�rer un r�alisateur � partir de son texte affichable.
 58  
      *
 59  
      * @param firstName The first name of the actor.
 60  
      * @param name      The name of the actor.
 61  
      * @return The realizer corresponding to this name.
 62  
      */
 63  
     RealizerImpl getRealizer(String firstName, String name);
 64  
 
 65  
     /**
 66  
      * Cette m�thode indique si un r�alisateur existe ou non.
 67  
      *
 68  
      * @param firstName The first name of the actor.
 69  
      * @param name      The name of the actor.
 70  
      * @return true s'il existe, sinon false
 71  
      */
 72  
     boolean exists(String firstName, String name);
 73  
 
 74  
     /**
 75  
      * Cette m�thode permet de supprimmer un r�alisateur.
 76  
      *
 77  
      * @param realisateur Le r�alisateur � supprimmer
 78  
      * @return true if the object is deleted else false.
 79  
      */
 80  
     boolean delete(RealizerImpl realisateur);
 81  
 
 82  
     /**
 83  
      * Save the realizer.
 84  
      *
 85  
      * @param realisateur The realizer to save.
 86  
      */
 87  
     void save(RealizerImpl realisateur);
 88  
 
 89  
     /**
 90  
      * Cette m�thode permet de cr�er un nouveau r�alisateur.
 91  
      *
 92  
      * @param realisateur Le r�alisateur � cr�er
 93  
      */
 94  
     void create(RealizerImpl realisateur);
 95  
 }