Class SubscriptionDAO

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

        public void delete​(int nSubscriptionId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface ISubscriptionDAO
        Parameters:
        nSubscriptionId - int 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 Collection<Subscription> selectSubscriptionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the subscription objects and returns them as a collection
        Specified by:
        selectSubscriptionsList in interface ISubscriptionDAO
        Parameters:
        plugin - the plugin
        Returns:
        The collection which contains the data of all the subscription objects
      • getMaxOrder

        public int getMaxOrder​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ISubscriptionDAO
        Get max order
        Specified by:
        getMaxOrder in interface ISubscriptionDAO
        Returns:
        max order