Class SubscriptionLinkDAO

java.lang.Object
fr.paris.lutece.plugins.broadcastproxy.business.SubscriptionLinkDAO
All Implemented Interfaces:
ISubscriptionLinkDAO

public final class SubscriptionLinkDAO extends Object implements ISubscriptionLinkDAO
This class provides Data Access methods for SubscriptionLink objects
  • Constructor Details

    • SubscriptionLinkDAO

      public SubscriptionLinkDAO()
  • Method Details

    • insert

      public void insert(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface ISubscriptionLinkDAO
      Parameters:
      subscriptionLink - instance of the SubscriptionLink object to insert
      plugin - the Plugin
    • load

      public Optional<SubscriptionLink> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface ISubscriptionLinkDAO
      Parameters:
      nKey - The identifier of the subscriptionLink
      plugin - the Plugin
      Returns:
      The instance of the subscriptionLink
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface ISubscriptionLinkDAO
      Parameters:
      nKey - The identifier of the SubscriptionLink to delete
      plugin - the Plugin
    • store

      public void store(SubscriptionLink subscriptionLink, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface ISubscriptionLinkDAO
      Parameters:
      subscriptionLink - the reference of the SubscriptionLink
      plugin - the Plugin
    • selectSubscriptionLinksList

      public List<SubscriptionLink> selectSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the subscriptionLink objects and returns them as a list
      Specified by:
      selectSubscriptionLinksList in interface ISubscriptionLinkDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the subscriptionLink objects
    • selectIdSubscriptionLinksList

      public List<Integer> selectIdSubscriptionLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the subscriptionLink objects and returns them as a list
      Specified by:
      selectIdSubscriptionLinksList in interface ISubscriptionLinkDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the subscriptionLink objects
    • selectSubscriptionLinksReferenceList

      public fr.paris.lutece.util.ReferenceList selectSubscriptionLinksReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the subscriptionLink objects and returns them as a referenceList
      Specified by:
      selectSubscriptionLinksReferenceList in interface ISubscriptionLinkDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the subscriptionLink objects
    • selectSubscriptionLinksListByIds

      public List<SubscriptionLink> selectSubscriptionLinksListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Specified by:
      selectSubscriptionLinksListByIds in interface ISubscriptionLinkDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • loadBySubscriptionId

      public Optional<SubscriptionLink> loadBySubscriptionId(int nSubscriptionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ISubscriptionLinkDAO
      Load the data from the table by subscription id
      Specified by:
      loadBySubscriptionId in interface ISubscriptionLinkDAO
      plugin - the Plugin
      Returns:
      The instance of the subscriptionLink
    • existDisabledNewsletter

      public boolean existDisabledNewsletter(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ISubscriptionLinkDAO
      Return true if exist disabled newsletter
      Specified by:
      existDisabledNewsletter in interface ISubscriptionLinkDAO
      Returns:
      Return true if exist disabled newsletter