Class MailItemQueueDAO

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

@ApplicationScoped public class MailItemQueueDAO extends Object implements IMailItemQueueDAO
This class provides Data Access methods for MailItemQueue objects
  • Constructor Details

    • MailItemQueueDAO

      public MailItemQueueDAO()
  • Method Details

    • 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 identifier 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