Interface IMailItemQueueDAO
- All Known Implementing Classes:
MailItemQueueDAO
public interface IMailItemQueueDAO
This class provides Data Access methods for MailItemQueue objects
-
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 item, unless it is already locked (taken by another consumer, possibly on another instance)intreturn the next mail item queue id
-
Method Details
-
insert
Insert a new mail item in the table.- Parameters:
mailItemQueue- the mail item
-
load
return the first mail item in the table- Parameters:
nIdMailItemQueue- the id of the mail item- Returns:
- the first mail item in the table
-
delete
void delete(int nIdMailItemQueue) Delete the mail item record in the table- Parameters:
nIdMailItemQueue- The indentifier of the mail item to remove
-
getCountMailItem
int getCountMailItem()- Returns:
- the number of mail item present in the core_mail_queue
-
nextMailItemQueueId
int nextMailItemQueueId()return the next mail item queue id- Returns:
- the next mail item queue id
-
lockMailItemQueue
boolean lockMailItemQueue(int nIdMailItemQueue) Lock the mail item, unless it is already locked (taken by another consumer, possibly on another instance)- Parameters:
nIdMailItemQueue- the id of the mail item to lock- Returns:
- true if this call locked the mail item
-