Class ArchiveItemHome
- java.lang.Object
-
- fr.paris.lutece.plugins.archive.business.ArchiveItemHome
-
public final class ArchiveItemHome extends java.lang.ObjectThis class provides Data Access methods for ArchiveItem objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcreate(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new archive item in the database queue.static voiddelete(int nIdArchiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the archive item record in the tablestatic ArchiveItemfindByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)load the archive item wich the id is specified in parameterstatic ArchiveItemgetNextArchiveItemQueue(fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the first archive item in the queuestatic voidupdateState(int nIdArchiveItem, java.lang.String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)update the archive state
-
-
-
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 insertplugin-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 removeplugin-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 itemstrState- the new stateplugin-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 idplugin-Plugin- Returns:
ArchiveItem
-
-