java.lang.Object
fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.ResourceHistoryDAO
All Implemented Interfaces:
IResourceHistoryDAO

public class ResourceHistoryDAO extends Object implements IResourceHistoryDAO
ResourceHistoryDAO
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.IResourceHistoryDAO

    BEAN_SERVICE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove resourceHistory by history
    void
    deleteByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove resourceHistory by resource
    getIdHistoryListByResource(int idTicket, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of id history for a resource(ticket)
    void
    insert(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert new record
    load(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load a record by primary key
    loadUnitOld(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load a record by primary key id_history and old unit

    Methods inherited from class java.lang.Object

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

    • ResourceHistoryDAO

      public ResourceHistoryDAO()
  • Method Details

    • insert

      public void insert(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert new record
      Specified by:
      insert in interface IResourceHistoryDAO
      Parameters:
      resourceHistory - the ResourceHistory Object
      plugin - the plugin
    • load

      public ResourceHistory load(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a record by primary key
      Specified by:
      load in interface IResourceHistoryDAO
      Parameters:
      nIdHistory - the history id
      plugin - the plugin
      Returns:
      ResourceHistory Object
    • getIdHistoryListByResource

      public List<Integer> getIdHistoryListByResource(int idTicket, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of id history for a resource(ticket)
      Specified by:
      getIdHistoryListByResource in interface IResourceHistoryDAO
      Parameters:
      idTicket - the ticket id
      plugin - the plugin
    • loadUnitOld

      public ResourceHistory loadUnitOld(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a record by primary key id_history and old unit
      Specified by:
      loadUnitOld in interface IResourceHistoryDAO
      Parameters:
      nIdHistory - the history id
      plugin - the plugin
      Returns:
      ResourceHistory Object
    • deleteByHistory

      public void deleteByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove resourceHistory by history
      Specified by:
      deleteByHistory in interface IResourceHistoryDAO
      Parameters:
      nIdHistory - the History id
      plugin - the plugin
    • deleteByResource

      public void deleteByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove resourceHistory by resource
      Specified by:
      deleteByResource in interface IResourceHistoryDAO
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      plugin - the plugin