Interface IDemandTypeDAO


  • public interface IDemandTypeDAO
    IDemandTypeDAO Interface
    • Method Detail

      • insert

        void insert​(DemandType demandType)
        Insert a new record in the table.
        Parameters:
        demandType - instance of the DemandType object to insert
      • store

        void store​(DemandType demandType)
        Update the record in the table
        Parameters:
        demandType - the reference of the DemandType
      • delete

        void delete​(int nKey)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the DemandType to delete
      • load

        Optional<DemandType> load​(int nKey)
        Load the data from the table
        Parameters:
        nKey - The identifier of the demandType
        Returns:
        The instance of the demandType
      • selectByTypeId

        Optional<DemandType> selectByTypeId​(String sKey)
        Load the data from the table by type_id
        Parameters:
        sKey - The type_id of the demandType
        Returns:
        The instance of the demandType
      • selectDemandTypesList

        List<DemandType> selectDemandTypesList()
        Load the data of all the demandType objects and returns them as a list
        Returns:
        The list which contains the data of all the demandType objects
      • selectIdDemandTypesList

        List<Integer> selectIdDemandTypesList()
        Load the id of all the demandType objects and returns them as a list
        Returns:
        The list which contains the id of all the demandType objects
      • selectDemandTypesListByIds

        List<DemandType> selectDemandTypesListByIds​(List<Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects