Class MailItemQueueDAO
java.lang.Object
fr.paris.lutece.portal.business.mail.MailItemQueueDAO
- All Implemented Interfaces:
IMailItemQueueDAO
This class provides Data Access methods for MailItemQueue objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdMailItemQueue) Delete the mail item record in the tableintvoidinsert(MailItemQueue mailItemQueue) Insert a new mail item in the table.load(int nIdMailItemQueue) return the first mail item in the tablebooleanlockMailItemQueue(int nIdMailItemQueue) Lock the mail itemintreturn the next mail item queue id
-
Constructor Details
-
MailItemQueueDAO
public MailItemQueueDAO()
-
-
Method Details
-
nextMailItemQueueId
public int nextMailItemQueueId()return the next mail item queue id- Specified by:
nextMailItemQueueIdin interfaceIMailItemQueueDAO- Returns:
- the next mail item queue id
-
lockMailItemQueue
public boolean lockMailItemQueue(int nIdMailItemQueue) Lock the mail item- Specified by:
lockMailItemQueuein interfaceIMailItemQueueDAO- Parameters:
nIdMailItemQueue- the id of the mail item to lock- Returns:
- true if this call locked the mail item
-
insert
Insert a new mail item in the table.- Specified by:
insertin interfaceIMailItemQueueDAO- Parameters:
mailItemQueue- the mail item
-
load
return the first mail item in the table- Specified by:
loadin interfaceIMailItemQueueDAO- 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:
deletein interfaceIMailItemQueueDAO- Parameters:
nIdMailItemQueue- The identifier of the mail item to remove
-
getCountMailItem
public int getCountMailItem()- Specified by:
getCountMailItemin interfaceIMailItemQueueDAO- Returns:
- the number of mail item present in the core_mail_queue
-