Class PanelDAO
java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.PanelDAO
- All Implemented Interfaces:
IPanelDAO
This class provides Data Access methods for Panel 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 a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadDefaultPanel(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load default PanelintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectIdPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the panel objects and returns them as a listselectPanelsList(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 referenceListvoidUpdate the record in the table
-
Constructor Details
-
PanelDAO
public PanelDAO()
-
-
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
Insert a new record in the table. -
load
Load the data from the table -
loadByCode
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
Update the record in the table -
selectPanelsList
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
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
Load default Panel- Specified by:
loadDefaultPanelin interfaceIPanelDAO- Parameters:
plugin- the Plugin- Returns:
- The instance of the panel
-