Class ArchiveItemDAO

java.lang.Object
fr.paris.lutece.plugins.archive.business.ArchiveItemDAO
All Implemented Interfaces:
IArchiveItemDAO

@ApplicationScoped public class ArchiveItemDAO extends Object implements IArchiveItemDAO
This class provides Data Access methods for MailItemQueue objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete the archive item record in the table
    int
    insert(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new archive item in the database queue.
    load(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    load the archive item wich the id is specified in parameter
    int
    nextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    return the next archive item queue id
    void
    updateState(int nIdArchiveItem, String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    update the archive state

    Methods inherited from class java.lang.Object

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

    • ArchiveItemDAO

      public ArchiveItemDAO()
  • Method Details

    • nextArchiveItemId

      public int nextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      return the next archive item queue id
      Specified by:
      nextArchiveItemId in interface IArchiveItemDAO
      Parameters:
      plugin - Plugin
      Returns:
      the next archive item queue id
    • updateState

      public void updateState(int nIdArchiveItem, String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update the archive state
      Specified by:
      updateState in interface IArchiveItemDAO
      Parameters:
      nIdArchiveItem - the id of the archive item
      strState - the new state
      plugin - Plugin
    • insert

      public int insert(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new archive item in the database queue.
      Specified by:
      insert in interface IArchiveItemDAO
      Parameters:
      archiveItem - the archive item to insert
      plugin - Plugin
      Returns:
      the id of the archive item
    • load

      public ArchiveItem load(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the archive item wich the id is specified in parameter
      Specified by:
      load in interface IArchiveItemDAO
      Parameters:
      nIdMailItemQueue - the archive item id
      plugin - Plugin
      Returns:
      ArchiveItem
    • delete

      public void delete(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the archive item record in the table
      Specified by:
      delete in interface IArchiveItemDAO
      Parameters:
      nIdMailItemQueue - The indentifier of the archive item to remove
      plugin - Plugin