org.jtheque.films.persistence.dao.impl
Class DaoActors

java.lang.Object
  extended by org.jtheque.core.managers.persistence.GenericDao<ActorImpl>
      extended by org.jtheque.films.persistence.dao.impl.DaoActors
All Implemented Interfaces:
org.jtheque.core.managers.persistence.able.JThequeDao, IDaoActors

public final class DaoActors
extends org.jtheque.core.managers.persistence.GenericDao<ActorImpl>
implements IDaoActors

Cette classe permet de gérer la persistance des acteurs.

Author:
Baptiste Wicht

Field Summary
 
Fields inherited from interface org.jtheque.films.persistence.dao.able.IDaoActors
TABLE
 
Constructor Summary
DaoActors()
          Construct a new DaoActors.
 
Method Summary
 boolean exist(ActorImpl actor)
          Indicate if the actor exist in the Dao.
 boolean exists(String firstName, String name)
          Cette méthode indique si un acteur existe ou non.
 ActorImpl getActor(int id)
           
 ActorImpl getActor(String firstName, String name)
          Cette méthode permet de récupérer un acteur à partir de son texte affichable.
 List<ActorImpl> getActors()
          Cette méthode retourne l'ensemble des acteurs du programme.
protected  org.jtheque.core.managers.persistence.QueryMapper getQueryMapper()
           
protected  org.springframework.jdbc.core.simple.ParameterizedRowMapper<ActorImpl> getRowMapper()
           
protected  void load(int i)
           
protected  void loadCache()
           
 
Methods inherited from class org.jtheque.core.managers.persistence.GenericDao
addDataListener, clearAll, create, delete, delete, get, getAll, getCache, getDatas, isNotInCache, load, removeDataListener, save, setCacheEntirelyLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtheque.films.persistence.dao.able.IDaoActors
create, delete, save
 
Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao
addDataListener, clearAll, getDatas, removeDataListener
 

Constructor Detail

DaoActors

public DaoActors()
Construct a new DaoActors.

Method Detail

getActors

public List<ActorImpl> getActors()
Description copied from interface: IDaoActors
Cette méthode retourne l'ensemble des acteurs du programme.

Specified by:
getActors in interface IDaoActors
Returns:
La liste des acteurs

getActor

public ActorImpl getActor(String firstName,
                          String name)
Description copied from interface: IDaoActors
Cette méthode permet de récupérer un acteur à partir de son texte affichable.

Specified by:
getActor in interface IDaoActors
Parameters:
firstName - The first name of the actor.
name - The name of the actor.
Returns:
L'acteurs qui correspond à ce texte

exists

public boolean exists(String firstName,
                      String name)
Description copied from interface: IDaoActors
Cette méthode indique si un acteur existe ou non.

Specified by:
exists in interface IDaoActors
Parameters:
firstName - The first name of the actor.
name - The name of the actor.
Returns:
true s'il existe, sinon false

exist

public boolean exist(ActorImpl actor)
Description copied from interface: IDaoActors
Indicate if the actor exist in the Dao.

Specified by:
exist in interface IDaoActors
Parameters:
actor - The actor we must test if it's exist.
Returns:
true if the actor exist else false.

getActor

public ActorImpl getActor(int id)
Specified by:
getActor in interface IDaoActors

getRowMapper

protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<ActorImpl> getRowMapper()
Specified by:
getRowMapper in class org.jtheque.core.managers.persistence.GenericDao<ActorImpl>

getQueryMapper

protected org.jtheque.core.managers.persistence.QueryMapper getQueryMapper()
Specified by:
getQueryMapper in class org.jtheque.core.managers.persistence.GenericDao<ActorImpl>

loadCache

protected void loadCache()
Specified by:
loadCache in class org.jtheque.core.managers.persistence.GenericDao<ActorImpl>

load

protected void load(int i)
Specified by:
load in class org.jtheque.core.managers.persistence.GenericDao<ActorImpl>


Copyright © 2009 JTheque. All Rights Reserved.