Class ArchiveItemDAO
java.lang.Object
fr.paris.lutece.plugins.archive.business.ArchiveItemDAO
- All Implemented Interfaces:
IArchiveItemDAO
This class provides Data Access methods for MailItemQueue objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(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, String strState, fr.paris.lutece.portal.service.plugin.Plugin plugin) update the archive state
-
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:
nextArchiveItemIdin interfaceIArchiveItemDAO- 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:
updateStatein interfaceIArchiveItemDAO- Parameters:
nIdArchiveItem- the id of the archive itemstrState- the new stateplugin-Plugin
-
insert
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
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
-