Interface IDemandTypeDAO

All Known Implementing Classes:
DemandTypeDAO

public interface IDemandTypeDAO
IDemandTypeDAO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    int
    insert(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Generates a new primary key
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all demand types
    selectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all demand types for the LuteceUser
    selectByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find by order
    selectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find by filter
    int
    selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find the max order
    selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find the demand types that have not a date end
    void
    store(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • newPrimaryKey

      int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Generates a new primary key
      Parameters:
      plugin - The Plugin
      Returns:
      The new primary key
    • insert

      int insert(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      demandType - instance
      plugin - the Plugin
      Returns:
      the key of the newly created object
    • store

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

      void delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nIdDemand - int identifier of the DemandType to delete
      plugin - the Plugin
    • load

      DemandType load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nIdDemand - The identifier of the DemandType
      plugin - the Plugin
      Returns:
      The instance of the object
    • selectAll

      List<DemandType> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all demand types
      Parameters:
      plugin - Plugin
      Returns:
      a list of DemandType
    • selectByIdCategoryAndDate

      List<DemandType> selectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all demand types for the LuteceUser
      Parameters:
      nIdCategory - the ID category
      dateToday - today
      plugin - Plugin
      Returns:
      a list of DemandType
    • selectMaxOrder

      int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the max order
      Parameters:
      plugin - Plugin
      Returns:
      the max order
    • selectDemandTypesByFilter

      List<DemandType> selectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find by filter
      Parameters:
      dtFilter - the filter
      plugin - Plugin
      Returns:
      a list of DemandType
    • selectByOrder

      DemandType selectByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find by order
      Parameters:
      nOrder - the order
      plugin - the Plugin
      Returns:
      a DemandType
    • selectNoDateEndDemandTypes

      List<DemandType> selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the demand types that have not a date end
      Parameters:
      plugin - the plugin
      Returns:
      a list of demand types