Coverage Report - org.jtheque.films.persistence.dao.able.IDaoActors
 
Classes in this File Line Coverage Branch Coverage Complexity
IDaoActors
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.ActorImpl;
 21  
 
 22  
 import java.util.List;
 23  
 
 24  
 /**
 25  
  * A DAO for actors specification.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  
 public interface IDaoActors extends JThequeDao {
 30  
     String TABLE = "T_FILM_ACTORS";
 31  
 
 32  
     /**
 33  
      * Cette m�thode retourne l'ensemble des acteurs du programme.
 34  
      *
 35  
      * @return La liste des acteurs
 36  
      */
 37  
     List<ActorImpl> getActors();
 38  
 
 39  
     /**
 40  
      * Cette m�thode permet de r�cup�rer un acteur � partir de son texte affichable.
 41  
      *
 42  
      * @param firstName The first name of the actor.
 43  
      * @param name      The name of the actor.
 44  
      * @return L'acteurs qui correspond � ce texte
 45  
      */
 46  
     ActorImpl getActor(String firstName, String name);
 47  
 
 48  
     /**
 49  
      * Cette m�thode indique si un acteur existe ou non.
 50  
      *
 51  
      * @param firstName The first name of the actor.
 52  
      * @param name      The name of the actor.
 53  
      * @return true s'il existe, sinon false
 54  
      */
 55  
     boolean exists(String firstName, String name);
 56  
 
 57  
     /**
 58  
      * Indicate if the actor exist in the Dao.
 59  
      *
 60  
      * @param actor The actor we must test if it's exist.
 61  
      * @return <code>true</code> if the actor exist else <code>false</code>.
 62  
      */
 63  
     boolean exist(ActorImpl actor);
 64  
 
 65  
     /**
 66  
      * Save the actor on the database.
 67  
      *
 68  
      * @param actor The actor to save.
 69  
      */
 70  
     void save(ActorImpl actor);
 71  
 
 72  
     /**
 73  
      * Cette m�thode permet de cr�er un nouvel acteur.
 74  
      *
 75  
      * @param actor L'acteur � cr�er
 76  
      */
 77  
     void create(ActorImpl actor);
 78  
 
 79  
     /**
 80  
      * Cette m�thode permet de supprimmer un acteur.
 81  
      *
 82  
      * @param actor L'acteur � supprimmer
 83  
      * @return true if the object is deleted else false.
 84  
      */
 85  
     boolean delete(ActorImpl actor);
 86  
 
 87  
     ActorImpl getActor(int id);
 88  
 }