Class EntryDAO

  • All Implemented Interfaces:
    IEntryDAO

    public class EntryDAO
    extends java.lang.Object
    implements IEntryDAO
    Class EntryDAO
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes the Entry whose identifier is specified in parameter
      java.util.Collection<IEntry> findByFilter​(EntryFilter entryFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all Entry specified by filter
      IEntry insert​(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert the Entry
      IEntry load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the entry type from the table
      int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Calculate a new primary key to add a new Entry
      void store​(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the Entry
      • Methods inherited from class java.lang.Object

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

      • EntryDAO

        public EntryDAO()
    • Method Detail

      • newPrimaryKey

        public int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Calculate a new primary key to add a new Entry
        Parameters:
        plugin - The Plugin using this data access service
        Returns:
        The new key.
      • load

        public IEntry load​(int nId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of the entry type from the table
        Specified by:
        load in interface IEntryDAO
        Parameters:
        nId - the id of the entry
        plugin - the plugin
        Returns:
        the instance of the EntryType
      • delete

        public void delete​(int nId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deletes the Entry whose identifier is specified in parameter
        Specified by:
        delete in interface IEntryDAO
        Parameters:
        nId - The identifier of the Entry
        plugin - The Plugin
      • insert

        public IEntry insert​(IEntry entry,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert the Entry
        Specified by:
        insert in interface IEntryDAO
        Parameters:
        entry - The Entry object
        plugin - The Plugin
        Returns:
        The Entry
      • store

        public void store​(IEntry entry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the Entry
        Specified by:
        store in interface IEntryDAO
        Parameters:
        entry - The Entry object
        plugin - The Plugin
      • findByFilter

        public java.util.Collection<IEntry> findByFilter​(EntryFilter entryFilter,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find all Entry specified by filter
        Specified by:
        findByFilter in interface IEntryDAO
        Parameters:
        entryFilter - The EntryFilter object
        plugin - the Plugin
        Returns:
        the instance of the EntryType