Class EntryDAO

    • 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 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