Class ArchiveItemHome


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

      All Methods Static Methods Concrete Methods 
      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
      static ArchiveItem findByPrimaryKey​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the archive item wich the id is specified in parameter
      static ArchiveItem getNextArchiveItemQueue​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the first archive item in the queue
      static void updateState​(int nIdArchiveItem, java.lang.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 Detail

      • 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,
                                       java.lang.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