Class HtmlPageDAO
java.lang.Object
fr.paris.lutece.plugins.htmlpage.business.HtmlPageDAO
- All Implemented Interfaces:
IHtmlPageDAO
This class provides Data Access methods for HtmlPage objects
- Author:
- lenaini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a record from the tablevoidInsert a new record in the table.load(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of HtmlPage from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of htmlpagesselectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load enabled htmlpageselectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of htmlpagesselectHtmlPagesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the html page objects and returns them as a listselectIdHtmlPagesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the html page objects and returns them as a listvoidUpdate the record in the table
-
Constructor Details
-
HtmlPageDAO
public HtmlPageDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIHtmlPageDAO- Parameters:
htmlpage- The htmlpage objectplugin- The plugin
-
load
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
Delete a record from the table- Specified by:
deletein interfaceIHtmlPageDAO- Parameters:
htmlpage- The HtmlPage objectplugin- The plugin
-
store
Update the record in the table- Specified by:
storein interfaceIHtmlPageDAO- Parameters:
htmlpage- The reference of htmlpageplugin- The plugin
-
selectAll
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
-
selectHtmlPagesListByIds
public List<HtmlPage> selectHtmlPagesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the html page objects and returns them as a list- Specified by:
selectHtmlPagesListByIdsin interfaceIHtmlPageDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the html page objects
-
selectIdHtmlPagesList
Load the id of all the html page objects and returns them as a list- Specified by:
selectIdHtmlPagesListin interfaceIHtmlPageDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the html page objects
-