Interface IPageTemplateDAO
-
- All Known Implementing Classes:
PageTemplateDAO
public interface IPageTemplateDAO- Author:
- LEVY
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
delete
void delete(int nPageTemplateId)
Delete a record from the table- Parameters:
nPageTemplateId- The indentifier of the object PageTemplate
-
insert
void insert(PageTemplate pageTemplate)
Insert a new record in the table.- Parameters:
pageTemplate- The Instance of the object PageTemplate
-
load
PageTemplate load(int nPageTemplateId)
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
void store(PageTemplate pageTemplate)
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
-
-