Class DemandDashboardDAO
java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.grusupply.business.DemandDashboardDAO
- All Implemented Interfaces:
IDemandDashboardDAO
This class provides Data Access methods for DemandDashboard objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int ndemandDashboardId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(DemandDashboard demandDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByDemandIds(List<DemandDashboard> listDemandDashboards, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the demandDashboard objects by demand ids and returns them as a ListselectDemandDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the demandDashboard objects and returns them as a Listvoidstore(DemandDashboard demandDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
DemandDashboardDAO
public DemandDashboardDAO()
-
-
Method Details
-
insert
public void insert(DemandDashboard demandDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIDemandDashboardDAO- Parameters:
demandDashboard- instance of the DemandDashboard object to inssertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIDemandDashboardDAOplugin- the Plugin- Returns:
- The instance of the demandDashboard
-
delete
public void delete(int ndemandDashboardId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIDemandDashboardDAO- Parameters:
ndemandDashboardId- int identifier of the DemandDashboard to deleteplugin- the Plugin
-
store
public void store(DemandDashboard demandDashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceIDemandDashboardDAO- Parameters:
demandDashboard- the reference of the DemandDashboardplugin- the Plugin
-
selectDemandDashboardsList
public List<DemandDashboard> selectDemandDashboardsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the demandDashboard objects and returns them as a List- Specified by:
selectDemandDashboardsListin interfaceIDemandDashboardDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the demandDashboard objects
-
selectByDemandIds
public List<DemandDashboard> selectByDemandIds(List<DemandDashboard> listDemandDashboards, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IDemandDashboardDAOLoad the data of all the demandDashboard objects by demand ids and returns them as a List- Specified by:
selectByDemandIdsin interfaceIDemandDashboardDAOplugin- the Plugin- Returns:
- The List which contains the data of all the demandDashboard objects
-