fr.paris.lutece.plugins.archive.business
Class ArchiveItemDAO

java.lang.Object
  extended by 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
ArchiveItemDAO()
           
 
Method Summary
 void delete(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the archive item record in the table
 int insert(ArchiveItem archiveItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new archive item in the database queue.
 ArchiveItem load(int nIdMailItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the archive item wich the id is specified in parameter
 int nextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the next archive item queue id
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveItemDAO

public ArchiveItemDAO()
Method Detail

nextArchiveItemId

public int nextArchiveItemId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the next archive item queue id

Specified by:
nextArchiveItemId in interface IArchiveItemDAO
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:
updateState in interface IArchiveItemDAO
Parameters:
nIdArchiveItem - the id of the archive item
strState - the new state
plugin - 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:
insert in interface IArchiveItemDAO
Parameters:
archiveItem - the archive item to insert
plugin - 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:
load in interface IArchiveItemDAO
Parameters:
nIdMailItemQueue - the archive item id
plugin - 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:
delete in interface IArchiveItemDAO
Parameters:
nIdMailItemQueue - The indentifier of the archive item to remove
plugin - Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.