fr.paris.lutece.plugins.crmclient.business
Class CRMItemQueueDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.crmclient.business.CRMItemQueueDAO
All Implemented Interfaces:
ICRMItemQueueDAO

public class CRMItemQueueDAO
extends java.lang.Object
implements ICRMItemQueueDAO

This class provides Data Access methods for CRMItemQueue objects


Constructor Summary
CRMItemQueueDAO()
           
 
Method Summary
 void delete(int nIdCRMItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the crm item record in the table
 int getCountCRMItem(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the number of crm items
 void insert(CRMItemQueue crmItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new crm item in the table.
 CRMItemQueue load(int nIdCRMItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          return the first crm item in the table
 void lockCRMItemQueue(int nIdCRMItemQueue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Lock the mail item
 int nextCRMItemQueueId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the next crm item queue id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRMItemQueueDAO

public CRMItemQueueDAO()
Method Detail

nextCRMItemQueueId

public int nextCRMItemQueueId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the next crm item queue id

Specified by:
nextCRMItemQueueId in interface ICRMItemQueueDAO
Parameters:
plugin - Plugin
Returns:
the next mail item queue id

lockCRMItemQueue

public void lockCRMItemQueue(int nIdCRMItemQueue,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Lock the mail item

Specified by:
lockCRMItemQueue in interface ICRMItemQueueDAO
Parameters:
nIdCRMItemQueue - the id of the crm item to lock
plugin - Plugin

insert

public void insert(CRMItemQueue crmItemQueue,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new crm item in the table.

Specified by:
insert in interface ICRMItemQueueDAO
Parameters:
crmItemQueue - the crm item queue
plugin - Plugin

load

public CRMItemQueue load(int nIdCRMItemQueue,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the first crm item in the table

Specified by:
load in interface ICRMItemQueueDAO
Parameters:
nIdCRMItemQueue - the id of the crm item
plugin - Plugin
Returns:
the first crm item in the table

delete

public void delete(int nIdCRMItemQueue,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the crm item record in the table

Specified by:
delete in interface ICRMItemQueueDAO
Parameters:
nIdCRMItemQueue - The indentifier of the crm item to remove
plugin - Plugin

getCountCRMItem

public int getCountCRMItem(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of crm items

Specified by:
getCountCRMItem in interface ICRMItemQueueDAO
Parameters:
plugin - Plugin
Returns:
the number of crm item present in the database


Copyright © 2011 Mairie de Paris. All Rights Reserved.