Interface IEntryTypeDAO

All Known Implementing Classes:
EntryTypeDAO

public interface IEntryTypeDAO
interface IEntryTypeDAO
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countDerivedEntryTypes(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Count the entry types derived from an entry type
    int
    countEntries(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Count the entries using an entry type
    void
    delete(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete an entry type
    void
    insert(EntryType entryType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new entry type
    load(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the entry type from the table
    select(String strPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all entry type associated with a given plugin and returns them in a list
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all entry type and returns them in a list
    int
    selectMaxOrder(String strPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the highest display order of the entry types of a plugin
    void
    store(EntryType entryType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Updates the EntryType
  • Method Details

    • load

      EntryType load(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the entry type from the table
      Parameters:
      idKey - The identifier of the entry type
      plugin - the plugin
      Returns:
      the instance of the EntryType
    • select

      List<EntryType> select(String strPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all entry type associated with a given plugin and returns them in a list
      Parameters:
      strPlugin - The name of plugin to get entry types of
      plugin - the plugin
      Returns:
      the list of entry type associated with the plugin
    • selectAll

      List<EntryType> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all entry type and returns them in a list
      Parameters:
      strPlugin - The name of plugin to get entry types of
      plugin - the plugin
      Returns:
      the list of entry type associated with the plugin
    • store

      void store(EntryType entryType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates the EntryType
      Parameters:
      entryType -
      plugin -
    • insert

      void insert(EntryType entryType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new entry type
      Parameters:
      entryType - the entry type to insert, its id is set after the insertion
      plugin - the plugin
    • delete

      void delete(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete an entry type
      Parameters:
      nIdType - the id of the entry type
      plugin - the plugin
    • selectMaxOrder

      int selectMaxOrder(String strPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the highest display order of the entry types of a plugin
      Parameters:
      strPlugin - the name of the plugin owning the entry types
      plugin - the plugin
      Returns:
      the highest display order, 0 if the plugin has no entry type
    • countEntries

      int countEntries(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Count the entries using an entry type
      Parameters:
      nIdType - the id of the entry type
      plugin - the plugin
      Returns:
      the number of entries of this type
    • countDerivedEntryTypes

      int countDerivedEntryTypes(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Count the entry types derived from an entry type
      Parameters:
      nIdType - the id of the entry type
      plugin - the plugin
      Returns:
      the number of entry types derived from it