Interface ISubscriptionDAO

  • All Known Implementing Classes:
    SubscriptionDAO

    public interface ISubscriptionDAO
    Interface for subscriber DAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdSubscription, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      List<Subscription> findByFilter​(SubscriptionFilter filter)
      Find a list of subscriptions from a filter
      int getMaxOrder​(String strIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get max order
      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
      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
      void store​(Subscription subscription, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

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

        void store​(Subscription subscription,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        subscription - the reference of the Subscription
        plugin - the Plugin
      • delete

        void delete​(int nIdSubscription,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdSubscription - int identifier of the Subscription to delete
        plugin - the Plugin
      • load

        Subscription load​(int nKey,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the subscription
        plugin - the plugin
        Returns:
        The instance of the subscription
      • selectSubscriptionsList

        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
        Parameters:
        plugin - the plugin
        Returns:
        The collection which contains the data of all the subscription objects
      • findByFilter

        List<Subscription> findByFilter​(SubscriptionFilter filter)
        Find a list of subscriptions from a filter
        Parameters:
        filter - The filter
        Returns:
        The list of subscriptions that matches the given filter
      • getMaxOrder

        int getMaxOrder​(String strIdUser,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get max order
        Parameters:
        plugin -
        Returns:
        max order