Class PanelDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.business.PanelDAO
-
-
Constructor Summary
Constructors Constructor Description PanelDAO()
-
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(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Panelload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablePanelloadByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablePanelloadDefaultPanel(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load default PanelintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyjava.util.List<java.lang.Integer>selectIdPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the panel objects and returns them as a listjava.util.List<Panel>selectPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the panel objects and returns them as a listfr.paris.lutece.util.ReferenceListselectPanelsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the panel objects and returns them as a referenceListvoidstore(Panel panel, 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(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Panel load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
loadByCode
public Panel loadByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByCodein interfaceIPanelDAOplugin- the Plugin- Returns:
- The instance of the panel
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectPanelsList
public java.util.List<Panel> selectPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the panel objects and returns them as a list- Specified by:
selectPanelsListin interfaceIPanelDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the panel objects
-
selectIdPanelsList
public java.util.List<java.lang.Integer> selectIdPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the panel objects and returns them as a list- Specified by:
selectIdPanelsListin interfaceIPanelDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the panel objects
-
selectPanelsReferenceList
public fr.paris.lutece.util.ReferenceList selectPanelsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the panel objects and returns them as a referenceList- Specified by:
selectPanelsReferenceListin interfaceIPanelDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the panel objects
-
loadDefaultPanel
public Panel loadDefaultPanel(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load default Panel- Specified by:
loadDefaultPanelin interfaceIPanelDAO- Parameters:
plugin- the Plugin- Returns:
- The instance of the panel
-
-