Class NotifyGruHistoryDAO

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanHistoryContentByDate​(java.sql.Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      clean all histories content who have a creation date before the tMinCreationDate
      void deleteByHistory​(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      delete all notifygrus associated width the history specified in parameter
      void deleteByTask​(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      delete all notifygrus associated width the task specified in parameter
      int getNbHistoryToCleanByDate​(java.sql.Timestamp tMinCreationDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      get nb histories who have a creation date before the tMinCreationDate
      void insert​(NotifyGruHistory history, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      insert new history notifygru
      NotifyGruHistory load​(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a record by primary key
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotifyGruHistoryDAO

        public NotifyGruHistoryDAO()
    • Method Detail

      • insert

        public void insert​(NotifyGruHistory history,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        insert new history notifygru
        Specified by:
        insert in interface INotifyGruHistoryDAO
        Parameters:
        history - history notifygru
        plugin - the plugin
      • load

        public NotifyGruHistory load​(int nIdHistory,
                                     int nIdTask,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a record by primary key
        Specified by:
        load in interface INotifyGruHistoryDAO
        Parameters:
        nIdHistory - the action history id
        nIdTask - the task id
        plugin - the plugin
        Returns:
        NotifyGruHistory Object
      • deleteByHistory

        public void deleteByHistory​(int nIdHistory,
                                    int nIdTask,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        delete all notifygrus associated width the history specified in parameter
        Specified by:
        deleteByHistory in interface INotifyGruHistoryDAO
        Parameters:
        nIdHistory - the history id
        nIdTask - the task id
        plugin - the plugin
      • deleteByTask

        public void deleteByTask​(int nIdTask,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        delete all notifygrus associated width the task specified in parameter
        Specified by:
        deleteByTask in interface INotifyGruHistoryDAO
        Parameters:
        nIdTask - the task id
        plugin - the plugin
      • cleanHistoryContentByDate

        public void cleanHistoryContentByDate​(java.sql.Timestamp tMinCreationDate,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        clean all histories content who have a creation date before the tMinCreationDate
        Specified by:
        cleanHistoryContentByDate in interface INotifyGruHistoryDAO
        Parameters:
        tMinCreationDate - the creation date minimal
        plugin - the plugin
      • getNbHistoryToCleanByDate

        public int getNbHistoryToCleanByDate​(java.sql.Timestamp tMinCreationDate,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        get nb histories who have a creation date before the tMinCreationDate
        Specified by:
        getNbHistoryToCleanByDate in interface INotifyGruHistoryDAO
        Parameters:
        tMinCreationDate - the history creation date
        plugin - the plugin
        Returns:
        the nb nb histories who have a creation date before the tMinCreationDate