Interface IPageTemplateDAO
- All Known Implementing Classes:
PageTemplateDAO
public interface IPageTemplateDAO
- Author:
- LEVY
-
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
-
Method Details
-
delete
void delete(int nPageTemplateId) Delete a record from the table- Parameters:
nPageTemplateId- The indentifier of the object PageTemplate
-
insert
Insert a new record in the table.- Parameters:
pageTemplate- The Instance of the object PageTemplate
-
load
load the data of PageTemplate from the table- Parameters:
nPageTemplateId- The indentifier of the object PageTemplate- Returns:
- The Instance of the object PageTemplate
-
selectPageTemplatesList
List<PageTemplate> selectPageTemplatesList()Returns a list of all the page templates- Returns:
- A list of PageTemplates objects
-
store
Update the record in the table- Parameters:
pageTemplate- The instance of the PageTemplate to update
-
checkPageTemplateIsUsed
boolean checkPageTemplateIsUsed(int nPageTemplateId) Checks if a page template has been used by a page- Parameters:
nPageTemplateId- The identifier of the page template- Returns:
- true if a page template is used by a page, false otherwise
-