Class PageTemplateDAO
java.lang.Object
fr.paris.lutece.portal.business.style.PageTemplateDAO
- All Implemented Interfaces:
IPageTemplateDAO
This class provides Data Access methods for PageTemplate objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPageTemplateIsUsed(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.load(int nPageTemplateId) load the data of PageTemplate from the tableReturns a list of all the page templatesvoidstore(PageTemplate pageTemplate) Update the record in the table
-
Constructor Details
-
PageTemplateDAO
public PageTemplateDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIPageTemplateDAO- Parameters:
pageTemplate- The Instance of the object PageTemplate
-
load
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
Update the record in the table- Specified by:
storein interfaceIPageTemplateDAO- Parameters:
pageTemplate- The instance of the PageTemplate to update
-
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
-