public final class PageTemplateDAO extends Object implements IPageTemplateDAO
| Constructor and Description |
|---|
PageTemplateDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPageTemplateIsUsed(int nPageTemplateId)
Checks if a page template has been used by a page
|
void |
delete(int nPageTemplateId)
Delete a record from the table
|
void |
insert(PageTemplate pageTemplate)
Insert a new record in the table.
|
PageTemplate |
load(int nPageTemplateId)
load the data of PageTemplate from the table
|
List<PageTemplate> |
selectPageTemplatesList()
Returns a list of all the page templates
|
void |
store(PageTemplate pageTemplate)
Update the record in the table
|
public void insert(PageTemplate pageTemplate)
insert in interface IPageTemplateDAOpageTemplate - The Instance of the object PageTemplatepublic PageTemplate load(int nPageTemplateId)
load in interface IPageTemplateDAOnPageTemplateId - The indentifier of the object PageTemplatepublic void delete(int nPageTemplateId)
delete in interface IPageTemplateDAOnPageTemplateId - The indentifier of the object PageTemplatepublic void store(PageTemplate pageTemplate)
store in interface IPageTemplateDAOpageTemplate - The instance of the PageTemplate to updatepublic List<PageTemplate> selectPageTemplatesList()
selectPageTemplatesList in interface IPageTemplateDAOpublic boolean checkPageTemplateIsUsed(int nPageTemplateId)
checkPageTemplateIsUsed in interface IPageTemplateDAOnPageTemplateId - The identifier of the page templateCopyright © 2020 City of Paris. All rights reserved.