|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.ods.business.seance.AbstractSeanceDAO<GSeance,GSeanceFilter,GFichier,GElu,GVoeuAmendement,GPDD>
GSeance - ISeanceGSeanceFilter - ISeanceFilterGFichier - IFichierGElu - IEluGVoeuAmendement - IVoeuAmendementGPDD - IPDDpublic 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>>
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 |
|---|
protected static final java.lang.String SQL_QUERY_NEW_PK
protected static final java.lang.String SQL_QUERY_SELECT
protected static final java.lang.String SQL_QUERY_FROM
protected static final java.lang.String SQL_QUERY_FROM_PDD
protected static final java.lang.String SQL_QUERY_WHERE_ID_SEANCE
protected static final java.lang.String SQL_QUERY_SEANCE_AFTER
protected static final java.lang.String SQL_QUERY_SEANCE_NEXT
protected static final java.lang.String SQL_QUERY_SEANCE_EN_COURS
protected static final java.lang.String SQL_QUERY_SEANCE_WIDTH_FILTER_LIST
protected static final java.lang.String SQL_KEYWORK_WHERE
protected static final java.lang.String SQL_QUERY_ORDER_BY_DATE_SEANCE
protected static final java.lang.String SQL_ORDER_BY_ID_SEANCE
protected static final java.lang.String SQL_QUERY_LIMIT_1
protected static final java.lang.String SQL_QUERY_SEANCE_OLD
protected static final java.lang.String SQL_QUERY_SEANCE_LIST
protected static final java.lang.String SQL_QUERY_BY_PDD
protected static final java.lang.String SQL_QUERY_DELETE
protected static final java.lang.String SQL_QUERY_INSERT
protected static final java.lang.String SQL_QUERY_UPDATE
protected static final java.lang.String SQL_QUERY_UPDATE_WHERE_CLAUSE
protected static final java.lang.String SQL_QUERY_INSERT_VALUES
| Constructor Detail |
|---|
public AbstractSeanceDAO()
| Method Detail |
|---|
protected abstract void doInsertSpec(GSeance seance,
fr.paris.lutece.util.sql.Transaction transaction)
throws java.sql.SQLException
seance - la seancetransaction - la transaction
java.sql.SQLException - en cas d'erreur SQL
protected abstract void doUpdateSpec(GSeance seance,
fr.paris.lutece.util.sql.Transaction transaction)
throws java.sql.SQLException
seance - la seancetransaction - la transaction
java.sql.SQLException - en cas d'erreur SQL
protected abstract int setInsertUpdateQueryValuesSpec(int nIndex,
GSeance seance,
java.sql.PreparedStatement preparedStatement)
throws java.sql.SQLException
nIndex - l'index de départseance - la séancepreparedStatement - le statement
java.sql.SQLException - en cas d'erreur SQLprotected abstract void buildSQLQueryUpdateSpec(java.lang.StringBuilder sbSQL)
sbSQL - le bufferprotected abstract int buildSQLQueryInsertSpec(java.lang.StringBuilder sbSQL)
sbSQL - le buffer
protected abstract void buildSQLQuerySelect(java.lang.StringBuilder buffer)
buffer - le bufferprotected abstract void buildSQLQueryFrom(java.lang.StringBuilder buffer)
buffer - le buffer
protected abstract void buildSQLQueryFilter(GSeanceFilter seanceFilter,
java.lang.StringBuilder buffer)
seanceFilter - le filtrebuffer - le bufferprotected abstract void buildSQLQueryOrderBySeance(java.lang.StringBuilder buffer)
buffer - le bufferprotected abstract void buildSQLQueryOrdreBySeanceForOldSeance(java.lang.StringBuilder buffer)
buffer - le buffer
protected abstract int fillParameters(int nStartIndex,
GSeanceFilter seanceFilter,
fr.paris.lutece.util.sql.DAOUtil daoUtil)
nStartIndex - l'index de départseanceFilter - le filtredaoUtil - daoUtil
protected abstract void fillSeanceFromQuerySpec(GSeance seance,
fr.paris.lutece.util.sql.DAOUtil daoUtil)
seance - la séancedaoUtil - daoutilprotected abstract java.sql.Timestamp getCurrentDateSpec()
protected abstract GSeance newSeanceInstance()
protected abstract GSeanceFilter newSeanceFilterInstance()
public void insert(GSeance seance,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>seance - la séance à insérerplugin - Plugin
public void store(GSeance seance,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>seance - la seanceplugin - le plugin
public void delete(int nIdSeance,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.util.AppException
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>>nIdSeance - la séance à supprimerplugin - Plugin
fr.paris.lutece.portal.service.util.AppException - exception levé si une dependance existepublic GSeance findLastSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - le plugin
public GSeance findNextSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - le plugin
public java.util.List<GSeance> findOldSeance(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - le plugin
public java.util.List<GSeance> findSeanceAfter(int idSeance,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>idSeance - l'identifiant de la séanceplugin - le plugin
public GSeance findSeanceByPdd(int idPdd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>idPdd - l'identifiant du PDDplugin - le plugin
public GSeance findSeanceByPddSpec(GPDD pdd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>pdd - le PDDplugin - le plugin
public GSeance findSeanceEnCours(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - le plugin
public GSeance load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>nKey - la cléplugin - le plugin
public java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter,
java.sql.Timestamp endDateFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>startDateFilter - date de débutendDateFilter - date de finplugin - Plugin
public java.util.List<GSeance> loadWithFilter(java.sql.Timestamp startDateFilter,
java.sql.Timestamp endDateFilter,
GSeanceFilter seanceFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>startDateFilter - date de débutendDateFilter - date de finseanceFilter - filtre de seanceplugin - Plugin
public java.util.List<GSeance> seanceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - Plugin
public java.util.List<GSeance> findNextSeancesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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>>plugin - le plugin
protected int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - Plugin
protected void fillSeanceFromQuery(GSeance seance,
fr.paris.lutece.util.sql.DAOUtil daoUtil)
seance - la séancedaoUtil - daoUtil
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||