org.genealogie.controleur.defaut
Class TypesRechercheCtrlImpl

java.lang.Object
  |
  +--org.genealogie.controleur.defaut.GenericCtrl
        |
        +--org.genealogie.controleur.defaut.TypesRechercheCtrlImpl
All Implemented Interfaces:
TypesRechercheCtrl

public class TypesRechercheCtrlImpl
extends GenericCtrl
implements TypesRechercheCtrl

Classe de contr“le pour les op‚rations de manipulation des types de recherches. Les erreurs lev‚es sont de type TypeRechercheException avec des codes d‚finis en chaŒnes 'public static' de la classe.

Version:
$Revision: 1.24 $, $Date: 2003/03/26 14:47:19 $
Author:
Templth

Field Summary
private  FactoryDAO factory
           
private  RecherchesDAO recherchesDAO
           
private  TypeRechercheImpl typeRecherche
           
 
Fields inherited from class org.genealogie.controleur.defaut.GenericCtrl
formatDate
 
Fields inherited from interface org.genealogie.controleur.TypesRechercheCtrl
TYPE_RECHERCHE_DELETE_ERREUR, TYPE_RECHERCHE_HAS_DOCUMENTS_ASSOCIES, TYPE_RECHERCHE_INSERT_ERREUR, TYPE_RECHERCHE_LIBELLE_VIDE, TYPE_RECHERCHE_NULL, TYPE_RECHERCHE_PARAM_NULL, TYPE_RECHERCHE_UPDATE_ERREUR
 
Constructor Summary
TypesRechercheCtrlImpl()
           
 
Method Summary
 void delete()
          Cette m‚thode permet de suprimer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 TypesRechercheUtils getTypeRecherche()
          Accesseur en lecture du type de recherche.
 void init(FactoryDAO factory)
          Initialisation par d‚faut.
 void init(FactoryDAO factory, int typeRechercheId)
          Initialisation avec le type de recherche pour la classe.
 void init(FactoryDAO factory, TypesRechercheUtils typeRecherche)
          Initialisation avec le type de recherche pour la classe.
 void insert(java.lang.String libelle, boolean web)
          Cette m‚thode permet d'ins‚rer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void insert(TypesRechercheUtils typeRecherche)
          Cette m‚thode permet d'ins‚rer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void update(java.lang.String libelle, boolean web)
          Cette m‚thode permet de mettre … jour un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void update(TypesRechercheUtils typeRecherche)
          Cette m‚thode permet de mettre … jour un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 
Methods inherited from class org.genealogie.controleur.defaut.GenericCtrl
estDecede, estDecede, getAge, getAge, getFormatDate, getPrenoms, getPrenoms, insererPersonneTable, isDateApprochee, majPersonneTable, setFormatDate, supprimerPersonneTable, supprimerPersonneTable
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

factory

private FactoryDAO factory

recherchesDAO

private RecherchesDAO recherchesDAO

typeRecherche

private TypeRechercheImpl typeRecherche
Constructor Detail

TypesRechercheCtrlImpl

public TypesRechercheCtrlImpl()
Method Detail

init

public void init(FactoryDAO factory)
          throws JGeneaException

Initialisation par d‚faut.

Specified by:
init in interface TypesRechercheCtrl

init

public void init(FactoryDAO factory,
                 TypesRechercheUtils typeRecherche)
          throws JGeneaException

Initialisation avec le type de recherche pour la classe.

Specified by:
init in interface TypesRechercheCtrl
Parameters:
factory - la factory
typeRecherche - le type de recherche

init

public void init(FactoryDAO factory,
                 int typeRechercheId)
          throws JGeneaException

Initialisation avec le type de recherche pour la classe.

Specified by:
init in interface TypesRechercheCtrl
Parameters:
factory - la factory
typeRechercheId - l'identifiant du type de recherche

getTypeRecherche

public TypesRechercheUtils getTypeRecherche()

Accesseur en lecture du type de recherche.

Specified by:
getTypeRecherche in interface TypesRechercheCtrl
Returns:
le type de recherche

insert

public void insert(TypesRechercheUtils typeRecherche)
            throws JGeneaException

Cette m‚thode permet d'ins‚rer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.

Specified by:
insert in interface TypesRechercheCtrl
Parameters:
typeRecherche - le type de recherche

insert

public void insert(java.lang.String libelle,
                   boolean web)
            throws JGeneaException

Cette m‚thode permet d'ins‚rer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.

Specified by:
insert in interface TypesRechercheCtrl
Parameters:
libelle - le libell‚ du type de recherche

update

public void update(TypesRechercheUtils typeRecherche)
            throws JGeneaException

Cette m‚thode permet de mettre … jour un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.

Specified by:
update in interface TypesRechercheCtrl
Parameters:
typeRecherche - le type de recherche

update

public void update(java.lang.String libelle,
                   boolean web)
            throws JGeneaException

Cette m‚thode permet de mettre … jour un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.

Specified by:
update in interface TypesRechercheCtrl
Parameters:
libelle - le libell‚ du type de recherche

delete

public void delete()
            throws JGeneaException

Cette m‚thode permet de suprimer un type de recherche en base, aprŠs avoir fait les v‚rifications n‚cessaires.

Specified by:
delete in interface TypesRechercheCtrl


Copyright © 2002 JGenea DAO. All Rights Reserved.