java.lang.Object
fr.paris.lutece.plugins.termofservice.business.EntryDAO
All Implemented Interfaces:
IEntryDAO

@ApplicationScoped public final class EntryDAO extends Object implements IEntryDAO
This class provides Data Access methods for Entry objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadLastVersion(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
    Load the data from the table
    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
    selectEntrysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the entry objects and returns them as a list
    selectEntrysListByIds(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
    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
    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

    Methods inherited from class java.lang.Object

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

    • EntryDAO

      public EntryDAO()
  • Method Details

    • insert

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

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

      public void store(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IEntryDAO
      Parameters:
      entry - the reference of the Entry
      plugin - the Plugin
    • selectEntrysList

      public 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
      Specified by:
      selectEntrysList in interface IEntryDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the entry objects
    • selectIdEntrysList

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

      public 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
      Specified by:
      selectEntrysReferenceList in interface IEntryDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the entry objects
    • selectEntrysListByIds

      public List<Entry> selectEntrysListByIds(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:
      selectEntrysListByIds in interface IEntryDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • loadLastVersion

      public Optional<Entry> loadLastVersion(fr.paris.lutece.portal.service.plugin.Plugin _plugin)
      Description copied from interface: IEntryDAO
      Load the data from the table
      Specified by:
      loadLastVersion in interface IEntryDAO
      Returns:
      The instance of the entry
    • publish

      public void publish(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IEntryDAO
      Publish an entry
      Specified by:
      publish in interface IEntryDAO
      Parameters:
      nKey - The identifier of the Entry to publish
      plugin - the Plugin
    • unpublishAll

      public void unpublishAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IEntryDAO
      Unpublish all entries
      Specified by:
      unpublishAll in interface IEntryDAO
      Parameters:
      plugin - the Plugin
    • loadPublishedEntry

      public Optional<Entry> loadPublishedEntry(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IEntryDAO
      Load the published entry
      Specified by:
      loadPublishedEntry in interface IEntryDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The instance of the published entry