Interface IEntryDAO

  • All Known Implementing Classes:
    EntryDAO

    public interface IEntryDAO
    IEntryDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract 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​(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<Entry> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<Entry> loadLastVersion​(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
      Load the data from the table
      java.util.Optional<Entry> loadPublishedEntry​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the published entry
      void publish​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Publish an entry
      java.util.List<Entry> selectEntrysList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the entry objects and returns them as a list
      java.util.List<Entry> selectEntrysListByIds​(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectEntrysReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the entry objects and returns them as a referenceList
      java.util.List<java.lang.Integer> selectIdEntrysList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the entry objects and returns them as a list
      void store​(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void unpublishAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Unpublish all entries
    • Method Detail

      • insert

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

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

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

        void publish​(int nKey,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Publish an entry
        Parameters:
        nKey - The identifier of the Entry to publish
        plugin - the Plugin
      • unpublishAll

        void unpublishAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Unpublish all entries
        Parameters:
        plugin - the Plugin
      • load

        java.util.Optional<Entry> load​(int nKey,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the entry
        plugin - the Plugin
        Returns:
        The instance of the entry
      • selectEntrysList

        java.util.List<Entry> selectEntrysList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the entry objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the entry objects
      • selectIdEntrysList

        java.util.List<java.lang.Integer> selectIdEntrysList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the entry objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the entry objects
      • selectEntrysReferenceList

        fr.paris.lutece.util.ReferenceList selectEntrysReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the entry objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the entry objects
      • selectEntrysListByIds

        java.util.List<Entry> selectEntrysListByIds​(fr.paris.lutece.portal.service.plugin.Plugin _plugin,
                                                    java.util.List<java.lang.Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        plugin - the Plugin
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects
      • loadLastVersion

        java.util.Optional<Entry> loadLastVersion​(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
        Load the data from the table
        Parameters:
        plugin - the Plugin
        Returns:
        The instance of the entry
      • loadPublishedEntry

        java.util.Optional<Entry> loadPublishedEntry​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the published entry
        Parameters:
        plugin - the Plugin
        Returns:
        The instance of the published entry