fr.paris.lutece.portal.business.mail
Class MailItemQueueDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.mail.MailItemQueueDAO
All Implemented Interfaces:
IMailItemQueueDAO

public class MailItemQueueDAO
extends java.lang.Object
implements IMailItemQueueDAO

This class provides Data Access methods for MailItemQueue objects


Constructor Summary
MailItemQueueDAO()
           
 
Method Summary
 void delete(int nIdMailItemQueue)
          Delete the mail item record in the table
 int getCountMailItem()
           
 void insert(MailItemQueue mailItemQueue)
          Insert a new mail item in the table.
 MailItemQueue load(int nIdMailItemQueue)
          return the first mail item in the table
 void lockMailItemQueue(int nIdMailItemQueue)
          Lock the mail item
 int nextMailItemQueueId()
          return the next mail item queue id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailItemQueueDAO

public MailItemQueueDAO()
Method Detail

nextMailItemQueueId

public int nextMailItemQueueId()
return the next mail item queue id

Specified by:
nextMailItemQueueId in interface IMailItemQueueDAO
Returns:
the next mail item queue id

lockMailItemQueue

public void lockMailItemQueue(int nIdMailItemQueue)
Lock the mail item

Specified by:
lockMailItemQueue in interface IMailItemQueueDAO
Parameters:
nIdMailItemQueue - the id of the mail item to lock

insert

public void insert(MailItemQueue mailItemQueue)
Insert a new mail item in the table.

Specified by:
insert in interface IMailItemQueueDAO
Parameters:
mailItemQueue - the mail item

load

public MailItemQueue load(int nIdMailItemQueue)
return the first mail item in the table

Specified by:
load in interface IMailItemQueueDAO
Parameters:
nIdMailItemQueue - the id of the mail item
Returns:
the first mail item in the table

delete

public void delete(int nIdMailItemQueue)
Delete the mail item record in the table

Specified by:
delete in interface IMailItemQueueDAO
Parameters:
nIdMailItemQueue - The indentifier of the mail item to remove

getCountMailItem

public int getCountMailItem()
Specified by:
getCountMailItem in interface IMailItemQueueDAO
Returns:
the number of mail item present in the core_mail_queue


Copyright © 2009 Mairie de Paris. All Rights Reserved.