Class TaskAntsAppointmentHistoryDAO

    • Constructor Detail

      • TaskAntsAppointmentHistoryDAO

        public TaskAntsAppointmentHistoryDAO()
    • Method Detail

      • insert

        public void insert​(TaskAntsAppointmentHistory history,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the ANTS task's history table
        Specified by:
        insert in interface ITaskAntsAppointmentHistoryDAO
        Parameters:
        history - TaskAntsAppointmentHistory object to insert
        plugin - The Plugin
      • load

        public TaskAntsAppointmentHistory load​(int idHistory,
                                               int idTask,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load data that matches the specified parameters, from the ANTS task's history table
        Specified by:
        load in interface ITaskAntsAppointmentHistoryDAO
        Parameters:
        idHistory - ID of the resource history used for the task
        idTask - ID of the task
        plugin - The Plugin
        Returns:
        The TaskAntsAppointmentHistory object matching the parameters, or null if none was found
      • deleteByHistory

        public void deleteByHistory​(int idHistory,
                                    int idTask,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete the history associated with the history and task specified in parameters
        Specified by:
        deleteByHistory in interface ITaskAntsAppointmentHistoryDAO
        Parameters:
        idHistory - ID of the resource history used for the task
        idTask - ID of the task
        plugin - The Plugin
      • deleteByTask

        public void deleteByTask​(int idTask,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete the history associated with the task specified in parameters
        Specified by:
        deleteByTask in interface ITaskAntsAppointmentHistoryDAO
        Parameters:
        idTask - ID of the task
        plugin - The Plugin