fr.paris.lutece.plugins.ods.business.seance
Class AbstractSeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.business.seance.AbstractSeanceDAO<GSeance,GSeanceFilter,GFichier,GElu,GVoeuAmendement,GPDD>
Type Parameters:
GSeance - ISeance
GSeanceFilter - ISeanceFilter
GFichier - IFichier
GElu - IElu
GVoeuAmendement - IVoeuAmendement
GPDD - IPDD
All Implemented Interfaces:
ISeanceDAO<GSeance,GSeanceFilter,GFichier,GElu,GVoeuAmendement,GPDD>

public abstract class AbstractSeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
extends java.lang.Object
implements ISeanceDAO<GSeance,GSeanceFilter,GFichier,GElu,GVoeuAmendement,GPDD>

AbstractSeanceDAO


Field Summary
protected static java.lang.String SQL_KEYWORK_WHERE
           
protected static java.lang.String SQL_ORDER_BY_ID_SEANCE
           
protected static java.lang.String SQL_QUERY_BY_PDD
           
protected static java.lang.String SQL_QUERY_DELETE
           
protected static java.lang.String SQL_QUERY_FROM
           
protected static java.lang.String SQL_QUERY_FROM_PDD
           
protected static java.lang.String SQL_QUERY_INSERT
           
protected static java.lang.String SQL_QUERY_INSERT_VALUES
           
protected static java.lang.String SQL_QUERY_LIMIT_1
           
protected static java.lang.String SQL_QUERY_NEW_PK
           
protected static java.lang.String SQL_QUERY_ORDER_BY_DATE_SEANCE
           
protected static java.lang.String SQL_QUERY_SEANCE_AFTER
           
protected static java.lang.String SQL_QUERY_SEANCE_EN_COURS
           
protected static java.lang.String SQL_QUERY_SEANCE_LIST
           
protected static java.lang.String SQL_QUERY_SEANCE_NEXT
           
protected static java.lang.String SQL_QUERY_SEANCE_OLD
           
protected static java.lang.String SQL_QUERY_SEANCE_WIDTH_FILTER_LIST
           
protected static java.lang.String SQL_QUERY_SELECT
           
protected static java.lang.String SQL_QUERY_UPDATE
           
protected static java.lang.String SQL_QUERY_UPDATE_WHERE_CLAUSE
           
protected static java.lang.String SQL_QUERY_WHERE_ID_SEANCE
           
 
Constructor Summary
AbstractSeanceDAO()
           
 
Method Summary
protected abstract  void buildSQLQueryFilter(GSeanceFilter seanceFilter, java.lang.StringBuilder buffer)
          Ajoute les filtres
protected abstract  void buildSQLQueryFrom(java.lang.StringBuilder buffer)
          Ajoute les jointures
protected abstract  int buildSQLQueryInsertSpec(java.lang.StringBuilder sbSQL)
          Ajoute les champs à insérer
protected abstract  void buildSQLQueryOrderBySeance(java.lang.StringBuilder buffer)
          Ajoute la clause "ORDER BY"
protected abstract  void buildSQLQueryOrdreBySeanceForOldSeance(java.lang.StringBuilder buffer)
          Ajoute la clause "ORDER BY" pour les séances passées
protected abstract  void buildSQLQuerySelect(java.lang.StringBuilder buffer)
          Ajoute le champs à récupérer dans le select
protected abstract  void buildSQLQueryUpdateSpec(java.lang.StringBuilder sbSQL)
          Ajoute les champs à mettre à jour
 void delete(int nIdSeance, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Supprime la séance correspondant à l’objet seance passé en paramètre
protected abstract  void doInsertSpec(GSeance seance, fr.paris.lutece.util.sql.Transaction transaction)
          Insere les informations dans les tables spécifiques
protected abstract  void doUpdateSpec(GSeance seance, fr.paris.lutece.util.sql.Transaction transaction)
          Met à jour les informations dans les table spécifiques
protected abstract  int fillParameters(int nStartIndex, GSeanceFilter seanceFilter, fr.paris.lutece.util.sql.DAOUtil daoUtil)
          Renseigne les paramètres
protected  void fillSeanceFromQuery(GSeance seance, fr.paris.lutece.util.sql.DAOUtil daoUtil)
          Remplit l'objet séance
protected abstract  void fillSeanceFromQuerySpec(GSeance seance, fr.paris.lutece.util.sql.DAOUtil daoUtil)
          Renseigne les informations spécifiques de la séance
 GSeance findLastSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la dernière séance passée
 GSeance findNextSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la prochaine séance
 java.util.List<GSeance> findNextSeancesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Retourne la liste des prochaines séances
 java.util.List<GSeance> findOldSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la liste des séances passées
 java.util.List<GSeance> findSeanceAfter(int idSeance, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la liste des séances après la séance passée en paramètre
 GSeance findSeanceByPdd(int idPdd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la séance associée à un PDD
 GSeance findSeanceByPddSpec(GPDD pdd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la séance associée à un PDD
 GSeance findSeanceEnCours(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Trouve la séance en cours
protected abstract  java.sql.Timestamp getCurrentDateSpec()
          Retourne la date
 void insert(GSeance seance, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Crée une nouvelle séance à partir de l’objet seance passé en paramètre
 GSeance load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Charge une séance à partir de la clé
 java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter, java.sql.Timestamp endDateFilter, GSeanceFilter seanceFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des séances dont la date de début est comprise entre startDateFilter et endDateFilter
 java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter, java.sql.Timestamp endDateFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des séances dont la date de début est comprise entre startDateFilter et endDateFilter
protected  int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Génère un nouvel identifiant
protected abstract  GSeanceFilter newSeanceFilterInstance()
          Crée une nouvelle instance de SeanceFilter
protected abstract  GSeance newSeanceInstance()
          Crée une nouvelle instance de séance
 java.util.List<GSeance> seanceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          renvoie la liste des séances dont la date de fin est supérieur ou égale a la date du jour
protected abstract  int setInsertUpdateQueryValuesSpec(int nIndex, GSeance seance, java.sql.PreparedStatement preparedStatement)
          Renseigne les valeurs pour l'insertion ou la mise à jour
 void store(GSeance seance, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Met à jour la séance en base
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_QUERY_NEW_PK

protected static final java.lang.String SQL_QUERY_NEW_PK
See Also:
Constant Field Values

SQL_QUERY_SELECT

protected static final java.lang.String SQL_QUERY_SELECT
See Also:
Constant Field Values

SQL_QUERY_FROM

protected static final java.lang.String SQL_QUERY_FROM
See Also:
Constant Field Values

SQL_QUERY_FROM_PDD

protected static final java.lang.String SQL_QUERY_FROM_PDD
See Also:
Constant Field Values

SQL_QUERY_WHERE_ID_SEANCE

protected static final java.lang.String SQL_QUERY_WHERE_ID_SEANCE
See Also:
Constant Field Values

SQL_QUERY_SEANCE_AFTER

protected static final java.lang.String SQL_QUERY_SEANCE_AFTER
See Also:
Constant Field Values

SQL_QUERY_SEANCE_NEXT

protected static final java.lang.String SQL_QUERY_SEANCE_NEXT
See Also:
Constant Field Values

SQL_QUERY_SEANCE_EN_COURS

protected static final java.lang.String SQL_QUERY_SEANCE_EN_COURS
See Also:
Constant Field Values

SQL_QUERY_SEANCE_WIDTH_FILTER_LIST

protected static final java.lang.String SQL_QUERY_SEANCE_WIDTH_FILTER_LIST
See Also:
Constant Field Values

SQL_KEYWORK_WHERE

protected static final java.lang.String SQL_KEYWORK_WHERE
See Also:
Constant Field Values

SQL_QUERY_ORDER_BY_DATE_SEANCE

protected static final java.lang.String SQL_QUERY_ORDER_BY_DATE_SEANCE
See Also:
Constant Field Values

SQL_ORDER_BY_ID_SEANCE

protected static final java.lang.String SQL_ORDER_BY_ID_SEANCE
See Also:
Constant Field Values

SQL_QUERY_LIMIT_1

protected static final java.lang.String SQL_QUERY_LIMIT_1
See Also:
Constant Field Values

SQL_QUERY_SEANCE_OLD

protected static final java.lang.String SQL_QUERY_SEANCE_OLD
See Also:
Constant Field Values

SQL_QUERY_SEANCE_LIST

protected static final java.lang.String SQL_QUERY_SEANCE_LIST
See Also:
Constant Field Values

SQL_QUERY_BY_PDD

protected static final java.lang.String SQL_QUERY_BY_PDD
See Also:
Constant Field Values

SQL_QUERY_DELETE

protected static final java.lang.String SQL_QUERY_DELETE
See Also:
Constant Field Values

SQL_QUERY_INSERT

protected static final java.lang.String SQL_QUERY_INSERT
See Also:
Constant Field Values

SQL_QUERY_UPDATE

protected static final java.lang.String SQL_QUERY_UPDATE
See Also:
Constant Field Values

SQL_QUERY_UPDATE_WHERE_CLAUSE

protected static final java.lang.String SQL_QUERY_UPDATE_WHERE_CLAUSE
See Also:
Constant Field Values

SQL_QUERY_INSERT_VALUES

protected static final java.lang.String SQL_QUERY_INSERT_VALUES
See Also:
Constant Field Values
Constructor Detail

AbstractSeanceDAO

public AbstractSeanceDAO()
Method Detail

doInsertSpec

protected abstract void doInsertSpec(GSeance seance,
                                     fr.paris.lutece.util.sql.Transaction transaction)
                              throws java.sql.SQLException
Insere les informations dans les tables spécifiques

Parameters:
seance - la seance
transaction - la transaction
Throws:
java.sql.SQLException - en cas d'erreur SQL

doUpdateSpec

protected abstract void doUpdateSpec(GSeance seance,
                                     fr.paris.lutece.util.sql.Transaction transaction)
                              throws java.sql.SQLException
Met à jour les informations dans les table spécifiques

Parameters:
seance - la seance
transaction - la transaction
Throws:
java.sql.SQLException - en cas d'erreur SQL

setInsertUpdateQueryValuesSpec

protected abstract int setInsertUpdateQueryValuesSpec(int nIndex,
                                                      GSeance seance,
                                                      java.sql.PreparedStatement preparedStatement)
                                               throws java.sql.SQLException
Renseigne les valeurs pour l'insertion ou la mise à jour

Parameters:
nIndex - l'index de départ
seance - la séance
preparedStatement - le statement
Returns:
l'index de sortie
Throws:
java.sql.SQLException - en cas d'erreur SQL

buildSQLQueryUpdateSpec

protected abstract void buildSQLQueryUpdateSpec(java.lang.StringBuilder sbSQL)
Ajoute les champs à mettre à jour

Parameters:
sbSQL - le buffer

buildSQLQueryInsertSpec

protected abstract int buildSQLQueryInsertSpec(java.lang.StringBuilder sbSQL)
Ajoute les champs à insérer

Parameters:
sbSQL - le buffer
Returns:
le nombre de champs ajoutés

buildSQLQuerySelect

protected abstract void buildSQLQuerySelect(java.lang.StringBuilder buffer)
Ajoute le champs à récupérer dans le select

Parameters:
buffer - le buffer

buildSQLQueryFrom

protected abstract void buildSQLQueryFrom(java.lang.StringBuilder buffer)
Ajoute les jointures

Parameters:
buffer - le buffer

buildSQLQueryFilter

protected abstract void buildSQLQueryFilter(GSeanceFilter seanceFilter,
                                            java.lang.StringBuilder buffer)
Ajoute les filtres

Parameters:
seanceFilter - le filtre
buffer - le buffer

buildSQLQueryOrderBySeance

protected abstract void buildSQLQueryOrderBySeance(java.lang.StringBuilder buffer)
Ajoute la clause "ORDER BY"

Parameters:
buffer - le buffer

buildSQLQueryOrdreBySeanceForOldSeance

protected abstract void buildSQLQueryOrdreBySeanceForOldSeance(java.lang.StringBuilder buffer)
Ajoute la clause "ORDER BY" pour les séances passées

Parameters:
buffer - le buffer

fillParameters

protected abstract int fillParameters(int nStartIndex,
                                      GSeanceFilter seanceFilter,
                                      fr.paris.lutece.util.sql.DAOUtil daoUtil)
Renseigne les paramètres

Parameters:
nStartIndex - l'index de départ
seanceFilter - le filtre
daoUtil - daoUtil
Returns:
l'index de sortie

fillSeanceFromQuerySpec

protected abstract void fillSeanceFromQuerySpec(GSeance seance,
                                                fr.paris.lutece.util.sql.DAOUtil daoUtil)
Renseigne les informations spécifiques de la séance

Parameters:
seance - la séance
daoUtil - daoutil

getCurrentDateSpec

protected abstract java.sql.Timestamp getCurrentDateSpec()
Retourne la date

Returns:
la date

newSeanceInstance

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

Returns:
une nouvelle instance de séance

newSeanceFilterInstance

protected abstract GSeanceFilter newSeanceFilterInstance()
Crée une nouvelle instance de SeanceFilter

Returns:
une nouvelle instance de SeanceFilter

insert

public void insert(GSeance seance,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Crée une nouvelle séance à partir de l’objet seance passé en paramètre

Specified by:
insert in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
seance - la séance à insérer
plugin - Plugin

store

public void store(GSeance seance,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Met à jour la séance en base

Specified by:
store in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
seance - la seance
plugin - le plugin

delete

public void delete(int nIdSeance,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
            throws fr.paris.lutece.portal.service.util.AppException
Supprime la séance correspondant à l’objet seance passé en paramètre

Specified by:
delete in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
nIdSeance - la séance à supprimer
plugin - Plugin
Throws:
fr.paris.lutece.portal.service.util.AppException - exception levé si une dependance existe

findLastSeance

public GSeance findLastSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la dernière séance passée

Specified by:
findLastSeance in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - le plugin
Returns:
la seance

findNextSeance

public GSeance findNextSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la prochaine séance

Specified by:
findNextSeance in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - le plugin
Returns:
la seance

findOldSeance

public java.util.List<GSeance> findOldSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la liste des séances passées

Specified by:
findOldSeance in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - le plugin
Returns:
la liste des séances passées

findSeanceAfter

public java.util.List<GSeance> findSeanceAfter(int idSeance,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la liste des séances après la séance passée en paramètre

Specified by:
findSeanceAfter in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
idSeance - l'identifiant de la séance
plugin - le plugin
Returns:
la liste des séances

findSeanceByPdd

public GSeance findSeanceByPdd(int idPdd,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la séance associée à un PDD

Specified by:
findSeanceByPdd in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
idPdd - l'identifiant du PDD
plugin - le plugin
Returns:
la seance

findSeanceByPddSpec

public GSeance findSeanceByPddSpec(GPDD pdd,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la séance associée à un PDD

Specified by:
findSeanceByPddSpec in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
pdd - le PDD
plugin - le plugin
Returns:
la seance

findSeanceEnCours

public GSeance findSeanceEnCours(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Trouve la séance en cours

Specified by:
findSeanceEnCours in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - le plugin
Returns:
la seance

load

public GSeance load(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Charge une séance à partir de la clé

Specified by:
load in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
nKey - la clé
plugin - le plugin
Returns:
la séance

loadWithFilter

public java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter,
                                              java.sql.Timestamp endDateFilter,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des séances dont la date de début est comprise entre startDateFilter et endDateFilter

Specified by:
loadWithFilter in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
startDateFilter - date de début
endDateFilter - date de fin
plugin - Plugin
Returns:
liste d'objets Seance

loadWithFilter

public java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter,
                                              java.sql.Timestamp endDateFilter,
                                              GSeanceFilter seanceFilter,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des séances dont la date de début est comprise entre startDateFilter et endDateFilter

Specified by:
loadWithFilter in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
startDateFilter - date de début
endDateFilter - date de fin
seanceFilter - filtre de seance
plugin - Plugin
Returns:
liste d'objets Seance

seanceList

public java.util.List<GSeance> seanceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
renvoie la liste des séances dont la date de fin est supérieur ou égale a la date du jour

Specified by:
seanceList in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - Plugin
Returns:
liste d'objets Seance

findNextSeancesList

public java.util.List<GSeance> findNextSeancesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retourne la liste des prochaines séances

Specified by:
findNextSeancesList in interface ISeanceDAO<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GFichier extends IFichier<GSeance,GFichier>,GElu extends IElu,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
Parameters:
plugin - le plugin
Returns:
la liste des prochaines séances

newPrimaryKey

protected int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Génère un nouvel identifiant

Parameters:
plugin - Plugin
Returns:
Retourne l’identifiant généré

fillSeanceFromQuery

protected void fillSeanceFromQuery(GSeance seance,
                                   fr.paris.lutece.util.sql.DAOUtil daoUtil)
Remplit l'objet séance

Parameters:
seance - la séance
daoUtil - daoUtil


Copyright © 2010 Mairie de Paris. All Rights Reserved.