Interface IDemandTypeDAO
-
public interface IDemandTypeDAOIDemandTypeDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nKey)Delete a record from the tablevoidinsert(DemandType demandType)Insert a new record in the table.Optional<DemandType>load(int nKey)Load the data from the tableOptional<DemandType>selectByTypeId(String sKey)Load the data from the table by type_idList<DemandType>selectDemandTypesList()Load the data of all the demandType objects and returns them as a listList<DemandType>selectDemandTypesListByIds(List<Integer> listIds)Load the data of all the avant objects and returns them as a listList<Integer>selectIdDemandTypesList()Load the id of all the demandType objects and returns them as a listvoidstore(DemandType demandType)Update the record in the table
-
-
-
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
-
-