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 IPageTemplateDAO
pageTemplate
- The Instance of the object PageTemplatepublic PageTemplate load(int nPageTemplateId)
load
in interface IPageTemplateDAO
nPageTemplateId
- The indentifier of the object PageTemplatepublic void delete(int nPageTemplateId)
delete
in interface IPageTemplateDAO
nPageTemplateId
- The indentifier of the object PageTemplatepublic void store(PageTemplate pageTemplate)
store
in interface IPageTemplateDAO
pageTemplate
- The instance of the PageTemplate to updatepublic List<PageTemplate> selectPageTemplatesList()
selectPageTemplatesList
in interface IPageTemplateDAO
public boolean checkPageTemplateIsUsed(int nPageTemplateId)
checkPageTemplateIsUsed
in interface IPageTemplateDAO
nPageTemplateId
- The identifier of the page templateCopyright © 2020 City of Paris. All rights reserved.