Class SubscriptionDAO

  • All Implemented Interfaces:
    ISubscriptionDAO

    public final class SubscriptionDAO
    extends java.lang.Object
    implements ISubscriptionDAO
    This class provides Data Access methods for Subscription objects
    • Constructor Summary

      Constructors 
      Constructor Description
      SubscriptionDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Subscription subscription, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Subscription load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectIdSubscriptionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the subscription objects and returns them as a list
      java.util.List<Subscription> selectSubscriptionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the subscription objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectSubscriptionsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the subscription objects and returns them as a referenceList
      void store​(Subscription subscription, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubscriptionDAO

        public SubscriptionDAO()
    • Method Detail

      • insert

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

        public Subscription load​(int nKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ISubscriptionDAO
        Parameters:
        nKey - The identifier of the subscription
        plugin - the Plugin
        Returns:
        The instance of the subscription
      • 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 ISubscriptionDAO
        Parameters:
        nKey - The identifier of the Subscription to delete
        plugin - the Plugin
      • store

        public void store​(Subscription subscription,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ISubscriptionDAO
        Parameters:
        subscription - the reference of the Subscription
        plugin - the Plugin
      • selectSubscriptionsList

        public java.util.List<Subscription> selectSubscriptionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the subscription objects and returns them as a list
        Specified by:
        selectSubscriptionsList in interface ISubscriptionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the subscription objects
      • selectIdSubscriptionsList

        public java.util.List<java.lang.Integer> selectIdSubscriptionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the subscription objects and returns them as a list
        Specified by:
        selectIdSubscriptionsList in interface ISubscriptionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the subscription objects
      • selectSubscriptionsReferenceList

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