Class ArchiveItemHome

java.lang.Object
fr.paris.lutece.plugins.archive.business.ArchiveItemHome

public final class ArchiveItemHome extends Object
This class provides Data Access methods for ArchiveItem objects
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    create(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new archive item in the database queue.
    static void
    delete(int nIdArchiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete the archive item record in the table
    findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    load the archive item wich the id is specified in parameter
    getNextArchiveItemQueue(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the first archive item in the queue
    static 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
  • Method Details

    • create

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

      public static void delete(int nIdArchiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the archive item record in the table
      Parameters:
      nIdArchiveItem - The indentifier of the archive item to remove
      plugin - Plugin
    • getNextArchiveItemQueue

      public static ArchiveItem getNextArchiveItemQueue(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the first archive item in the queue
      Parameters:
      plugin - Plugin
      Returns:
      the first archive item in the queue
    • updateState

      public static void updateState(int nIdArchiveItem, String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update the archive state
      Parameters:
      nIdArchiveItem - the id of the archive item
      strState - the new state
      plugin - Plugin
    • findByPrimaryKey

      public static ArchiveItem findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the archive item wich the id is specified in parameter
      Parameters:
      nKey - the archive item id
      plugin - Plugin
      Returns:
      ArchiveItem