fr.paris.lutece.plugins.ods.business.arrete
Class AbstractArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.business.arrete.AbstractArreteDAO<GSeance,GFichier>
Type Parameters:
GSeance - seance
GFichier - fichier
All Implemented Interfaces:
IArreteDAO<GSeance,GFichier>

public abstract class AbstractArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
extends java.lang.Object
implements IArreteDAO<GSeance,GFichier>

Cette classe permet d'accèder/gérer la table ods_arrete


Constructor Summary
AbstractArreteDAO()
           
 
Method Summary
 void delete(Arrete<GSeance,GFichier> arrete, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime l'arrete correspondant à l’objet arrete deliberation en paramètre
 int insert(Arrete<GSeance,GFichier> arrete, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Crée un nouvel arreté à partir de l’objet arrete passé en paramètre
 Arrete<GSeance,GFichier> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne l'arrete ayant comme identifiant nKey
protected abstract  GFichier newFichierInstance()
          Crée une nouvelle instance de fichier
protected abstract  GSeance newSeanceInstance()
          Crée une nouvelle instance de séance
 void publication(int nKey, java.sql.Timestamp tsDatePublication, int version, boolean isPublie, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Permet de publier ou de dépublier un arrete Si isPublie égale à TRUE, alors la méthode publie l'arrete et incrémente la version
Sinon la méthode change le statut enLigne de l'arrete a false
 Arrete<GSeance,GFichier> selectByFichier(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie l'arrete ayant comme identifiant de fichier nKey
 java.util.List<Arrete<GSeance,GFichier>> selectByFilter(ArreteFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne la liste des arretes correspondants aux critères du filtre.
 void store(Arrete<GSeance,GFichier> arrete, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modifie l'arrete correspondante à l’objet arrete passé en paramètre
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractArreteDAO

public AbstractArreteDAO()
Method Detail

newFichierInstance

protected abstract GFichier newFichierInstance()
Crée une nouvelle instance de fichier

Returns:
une nouvelle instance de fichier

newSeanceInstance

protected abstract GSeance newSeanceInstance()
Crée une nouvelle instance de séance

Returns:
une nouvelle instance de séance

insert

public int insert(Arrete<GSeance,GFichier> arrete,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Crée un nouvel arreté à partir de l’objet arrete passé en paramètre

Specified by:
insert in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
arrete - l'arrete à insérer
plugin - le plugin
Returns:
int primaryKey

store

public void store(Arrete<GSeance,GFichier> arrete,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modifie l'arrete correspondante à l’objet arrete passé en paramètre

Specified by:
store in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
arrete - l'arrete à modifier
plugin - le plugin

delete

public void delete(Arrete<GSeance,GFichier> arrete,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
            throws fr.paris.lutece.portal.service.util.AppException
Supprime l'arrete correspondant à l’objet arrete deliberation en paramètre

Specified by:
delete in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
arrete - l'arrete à supprimer
plugin - le plugin
Throws:
fr.paris.lutece.portal.service.util.AppException - si contrainte de clé étrangère

selectByFilter

public java.util.List<Arrete<GSeance,GFichier>> selectByFilter(ArreteFilter filter,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne la liste des arretes correspondants aux critères du filtre.

Specified by:
selectByFilter in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
filter - les critères de recherche de la délibération
plugin - le plugin
Returns:
la liste de arretes correspondants aux critères de recherche

selectByFichier

public Arrete<GSeance,GFichier> selectByFichier(int nKey,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie l'arrete ayant comme identifiant de fichier nKey

Specified by:
selectByFichier in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
nKey - idenfiant du fichier
plugin - le Plugin actif
Returns:
l'arrete

load

public Arrete<GSeance,GFichier> load(int nKey,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne l'arrete ayant comme identifiant nKey

Specified by:
load in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
nKey - identifiant de l'arrete à charger
plugin - le plugin
Returns:
la délibération identifiée par nKey

publication

public void publication(int nKey,
                        java.sql.Timestamp tsDatePublication,
                        int version,
                        boolean isPublie,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Permet de publier ou de dépublier un arrete Si isPublie égale à TRUE, alors la méthode publie l'arrete et incrémente la version
Sinon la méthode change le statut enLigne de l'arrete a false

Specified by:
publication in interface IArreteDAO<GSeance extends ISeance,GFichier extends IFichier<GSeance,GFichier>>
Parameters:
nKey - l'identifiant de l'arrete
tsDatePublication - la date de publication
version - la version de l'arrete
isPublie - le statut de l'arrete
plugin - le plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.