Class HtmlPageDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.htmlpage.business.HtmlPageDAO
-
- All Implemented Interfaces:
IHtmlPageDAO
public class HtmlPageDAO extends Object implements IHtmlPageDAO
This class provides Data Access methods for HtmlPage objects- Author:
- lenaini
-
-
Constructor Summary
Constructors Constructor Description HtmlPageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.HtmlPageload(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of HtmlPage from the tableCollection<HtmlPage>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of htmlpagesHtmlPageselectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load enabled htmlpageCollection<HtmlPage>selectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of htmlpagesvoidstore(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIHtmlPageDAO- Parameters:
htmlpage- The htmlpage objectplugin- The plugin
-
load
public HtmlPage load(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of HtmlPage from the table- Specified by:
loadin interfaceIHtmlPageDAO- Parameters:
nHtmlPageId- The identifier of HtmlPageplugin- The plugin- Returns:
- the instance of the HtmlPage
-
delete
public void delete(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table- Specified by:
deletein interfaceIHtmlPageDAO- Parameters:
htmlpage- The HtmlPage objectplugin- The plugin
-
store
public void store(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIHtmlPageDAO- Parameters:
htmlpage- The reference of htmlpageplugin- The plugin
-
selectAll
public Collection<HtmlPage> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of htmlpages- Specified by:
selectAllin interfaceIHtmlPageDAO- Parameters:
plugin- The plugin- Returns:
- The Collection of the HtmlPages
-
selectEnabledHtmlPage
public HtmlPage selectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load enabled htmlpage- Specified by:
selectEnabledHtmlPagein interfaceIHtmlPageDAO- Parameters:
nHtmlPageId- The page idplugin- The plugin- Returns:
- The Collection of the HtmlPages
-
selectEnabledHtmlPageList
public Collection<HtmlPage> selectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of htmlpages- Specified by:
selectEnabledHtmlPageListin interfaceIHtmlPageDAO- Parameters:
plugin- The plugin- Returns:
- The Collection of the HtmlPages
-
-