Class PageTemplateDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.style.PageTemplateDAO
-
- All Implemented Interfaces:
IPageTemplateDAO
public final class PageTemplateDAO extends Object implements IPageTemplateDAO
This class provides Data Access methods for PageTemplate objects
-
-
Constructor Summary
Constructors Constructor Description PageTemplateDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckPageTemplateIsUsed(int nPageTemplateId)Checks if a page template has been used by a pagevoiddelete(int nPageTemplateId)Delete a record from the tablevoidinsert(PageTemplate pageTemplate)Insert a new record in the table.PageTemplateload(int nPageTemplateId)load the data of PageTemplate from the tableList<PageTemplate>selectPageTemplatesList()Returns a list of all the page templatesvoidstore(PageTemplate pageTemplate)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(PageTemplate pageTemplate)
Insert a new record in the table.- Specified by:
insertin interfaceIPageTemplateDAO- Parameters:
pageTemplate- The Instance of the object PageTemplate
-
load
public PageTemplate load(int nPageTemplateId)
load the data of PageTemplate from the table- Specified by:
loadin interfaceIPageTemplateDAO- Parameters:
nPageTemplateId- The indentifier of the object PageTemplate- Returns:
- The Instance of the object PageTemplate
-
delete
public void delete(int nPageTemplateId)
Delete a record from the table- Specified by:
deletein interfaceIPageTemplateDAO- Parameters:
nPageTemplateId- The indentifier of the object PageTemplate
-
store
public void store(PageTemplate pageTemplate)
Update the record in the table- Specified by:
storein interfaceIPageTemplateDAO- Parameters:
pageTemplate- The instance of the PageTemplate to update
-
selectPageTemplatesList
public List<PageTemplate> selectPageTemplatesList()
Returns a list of all the page templates- Specified by:
selectPageTemplatesListin interfaceIPageTemplateDAO- Returns:
- A list of PageTemplates objects
-
checkPageTemplateIsUsed
public boolean checkPageTemplateIsUsed(int nPageTemplateId)
Checks if a page template has been used by a page- Specified by:
checkPageTemplateIsUsedin interfaceIPageTemplateDAO- Parameters:
nPageTemplateId- The identifier of the page template- Returns:
- true if a page template is used by a page, false otherwise
-
-