Class DashboardAssociationDAO
java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.DashboardAssociationDAO
- All Implemented Interfaces:
IDashboardAssociationDAO
@ApplicationScoped
public class DashboardAssociationDAO
extends Object
implements IDashboardAssociationDAO
This class provides Data Access methods for DashboardAssociation objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(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 associationselectDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the dashboardAssociation objects and returns them as a listselectDashboardAssociationsListByIdPanel(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 referenceListselectIdDashboardAssociationsList(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
-
Constructor Details
-
DashboardAssociationDAO
public DashboardAssociationDAO()
-
-
Method Details
-
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
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 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 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 List<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
-