fr.paris.lutece.plugins.archive.business
Interface IArchiveItemDAO

All Known Implementing Classes:
ArchiveItemDAO

public interface IArchiveItemDAO

IArchiveItemDAO


Method Summary
 void delete(int nIdArchiveItem, 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 nIdArchiveItem, 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
 

Method Detail

nextArchiveItemId

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

Parameters:
plugin - Plugin
Returns:
the next archive item queue id

updateState

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

insert

int insert(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

load

ArchiveItem load(int nIdArchiveItem,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the archive item wich the id is specified in parameter

Parameters:
nIdArchiveItem - the archive item id
plugin - Plugin
Returns:
ArchiveItem

delete

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.