Class ArchiveItemDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.archive.business.ArchiveItemDAO
-
- All Implemented Interfaces:
IArchiveItemDAO
public class ArchiveItemDAO extends java.lang.Object implements IArchiveItemDAO
This class provides Data Access methods for MailItemQueue objects
-
-
Constructor Summary
Constructors Constructor Description ArchiveItemDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete the archive item record in the tableintinsert(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new archive item in the database queue.ArchiveItemload(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)load the archive item wich the id is specified in parameterintnextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)return the next archive item queue idvoidupdateState(int nIdArchiveItem, java.lang.String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)update the archive state
-
-
-
Method Detail
-
nextArchiveItemId
public int nextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the next archive item queue id- Specified by:
nextArchiveItemIdin interfaceIArchiveItemDAO- Parameters:
plugin-Plugin- Returns:
- the next archive item queue id
-
updateState
public void updateState(int nIdArchiveItem, java.lang.String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin)update the archive state- Specified by:
updateStatein interfaceIArchiveItemDAO- Parameters:
nIdArchiveItem- the id of the archive itemstrState- the new stateplugin-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:
insertin interfaceIArchiveItemDAO- Parameters:
archiveItem- the archive item to insertplugin-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:
loadin interfaceIArchiveItemDAO- Parameters:
nIdMailItemQueue- the archive item idplugin-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:
deletein interfaceIArchiveItemDAO- Parameters:
nIdMailItemQueue- The indentifier of the archive item to removeplugin-Plugin
-
-