org.genealogie.controleur
Interface RepertoiresCtrl

All Known Implementing Classes:
RepertoiresCtrlImpl

public interface RepertoiresCtrl

Classe de contr“le pour les op‚rations de manipulation des r‚pertoires. Les erreurs lev‚es sont de type RepertoireException avec des codes d‚finis en chaŚnes 'public static' de la classe.

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

Field Summary
static java.lang.String REPERTOIRE_DELETE_ERREUR
           
static java.lang.String REPERTOIRE_HAS_DOCUMENTS_ASSOCIES
           
static java.lang.String REPERTOIRE_INSERT_ERREUR
           
static java.lang.String REPERTOIRE_LIBELLE_VIDE
           
static java.lang.String REPERTOIRE_NULL
           
static java.lang.String REPERTOIRE_PARAM_NULL
           
static java.lang.String REPERTOIRE_UPDATE_ERREUR
           
 
Method Summary
 void delete()
          Cette m‚thode permet de suprimer un r‚pertoire en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 RepertoireUtils getRepertoire()
          Accesseur en lecture du r‚pertoire.
 void init(FactoryDAO factory)
          Initialisation par d‚faut.
 void init(FactoryDAO factory, int repertoireId)
          Initialisation avec le r‚pertoire pour la classe.
 void init(FactoryDAO factory, RepertoireUtils repertoire)
          Initialisation avec le r‚pertoire pour la classe.
 void insert(RepertoireUtils repertoire)
          Cette m‚thode permet d'ins‚rer un r‚pertoire en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void insert(java.lang.String libelle)
          Cette m‚thode permet d'ins‚rer un r‚pertoire en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void update(RepertoireUtils repertoire)
          Cette m‚thode permet de mettre … jour un r‚pertoire en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 void update(java.lang.String libelle)
          Cette m‚thode permet de mettre … jour un r‚pertoire en base, aprŠs avoir fait les v‚rifications n‚cessaires.
 

Field Detail

REPERTOIRE_LIBELLE_VIDE

public static final java.lang.String REPERTOIRE_LIBELLE_VIDE

REPERTOIRE_INSERT_ERREUR

public static final java.lang.String REPERTOIRE_INSERT_ERREUR

REPERTOIRE_UPDATE_ERREUR

public static final java.lang.String REPERTOIRE_UPDATE_ERREUR

REPERTOIRE_DELETE_ERREUR

public static final java.lang.String REPERTOIRE_DELETE_ERREUR

REPERTOIRE_HAS_DOCUMENTS_ASSOCIES

public static final java.lang.String REPERTOIRE_HAS_DOCUMENTS_ASSOCIES

REPERTOIRE_NULL

public static final java.lang.String REPERTOIRE_NULL

REPERTOIRE_PARAM_NULL

public static final java.lang.String REPERTOIRE_PARAM_NULL
Method Detail

init

public void init(FactoryDAO factory)
          throws JGeneaException

Initialisation par d‚faut.


init

public void init(FactoryDAO factory,
                 RepertoireUtils repertoire)
          throws JGeneaException

Initialisation avec le r‚pertoire pour la classe.

Parameters:
factory - la factory
repertoire - le r‚pertoire

init

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

Initialisation avec le r‚pertoire pour la classe.

Parameters:
factory - la factory
repertoireId - l'identifiant du r‚pertoire

getRepertoire

public RepertoireUtils getRepertoire()

Accesseur en lecture du r‚pertoire.

Returns:
le r‚pertoire

insert

public void insert(RepertoireUtils repertoire)
            throws JGeneaException

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

Parameters:
repertoire - le r‚pertoire

insert

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

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

Parameters:
libelle - le libell‚ du r‚pertoire

update

public void update(RepertoireUtils repertoire)
            throws JGeneaException

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

Parameters:
repertoire - le r‚pertoire

update

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

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

Parameters:
libelle - le libell‚ du r‚pertoire

delete

public void delete()
            throws JGeneaException

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



Copyright © 2002 JGenea DAO. All Rights Reserved.