Class DashboardAssociationDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.business.DashboardAssociationDAO
-
- All Implemented Interfaces:
IDashboardAssociationDAO
public final class DashboardAssociationDAO extends java.lang.Object implements IDashboardAssociationDAO
This class provides Data Access methods for DashboardAssociation objects
-
-
Constructor Summary
Constructors Constructor Description DashboardAssociationDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.DashboardAssociationload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyintselectCountDashboardAssociations(fr.paris.lutece.portal.service.plugin.Plugin plugin)return the number of associationjava.util.List<DashboardAssociation>selectDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dashboardAssociation objects and returns them as a listjava.util.List<DashboardAssociation>selectDashboardAssociationsListByIdPanel(int nIdPanel, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dashboardAssociation objects associated to a panel and returns them as a listfr.paris.lutece.util.ReferenceListselectDashboardAssociationsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the dashboardAssociation objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the dashboardAssociation objects and returns them as a listvoidstore(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public 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
public void insert(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIDashboardAssociationDAO- Parameters:
dashboardAssociation- instance of the DashboardAssociation object to insertplugin- the Plugin
-
load
public DashboardAssociation load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIDashboardAssociationDAO- Parameters:
nKey- The identifier of the dashboardAssociationplugin- the Plugin- Returns:
- The instance of the dashboardAssociation
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIDashboardAssociationDAO- Parameters:
nKey- The identifier of the DashboardAssociation to deleteplugin- the Plugin
-
store
public void store(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIDashboardAssociationDAO- Parameters:
dashboardAssociation- the reference of the DashboardAssociationplugin- the Plugin
-
selectDashboardAssociationsList
public java.util.List<DashboardAssociation> selectDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dashboardAssociation objects and returns them as a list- Specified by:
selectDashboardAssociationsListin interfaceIDashboardAssociationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the dashboardAssociation objects
-
selectDashboardAssociationsListByIdPanel
public java.util.List<DashboardAssociation> selectDashboardAssociationsListByIdPanel(int nIdPanel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dashboardAssociation objects associated to a panel and returns them as a list- Specified by:
selectDashboardAssociationsListByIdPanelin interfaceIDashboardAssociationDAO- Parameters:
nIdPanel- the panel Idplugin- the Plugin- Returns:
- The list which contains the data of all the dashboardAssociation objects
-
selectCountDashboardAssociations
public int selectCountDashboardAssociations(fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the number of association- Specified by:
selectCountDashboardAssociationsin interfaceIDashboardAssociationDAO- Parameters:
plugin- the plugin- Returns:
- the number of association
-
selectIdDashboardAssociationsList
public java.util.List<java.lang.Integer> selectIdDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the dashboardAssociation objects and returns them as a list- Specified by:
selectIdDashboardAssociationsListin interfaceIDashboardAssociationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the dashboardAssociation objects
-
selectDashboardAssociationsReferenceList
public fr.paris.lutece.util.ReferenceList selectDashboardAssociationsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the dashboardAssociation objects and returns them as a referenceList- Specified by:
selectDashboardAssociationsReferenceListin interfaceIDashboardAssociationDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the dashboardAssociation objects
-
-