Interface IPortletTemplateDAO
- All Known Implementing Classes:
PortletTemplateDAO
public interface IPortletTemplateDAO
Data access interface of the portlet templates
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckTemplateIsUsed(int nIdTemplate) Tells whether at least one portlet uses a templatevoiddelete(int nIdTemplate) Deletes a templatevoidinsert(PortletTemplate template) Inserts a template and sets its generated identifierload(int nIdTemplate) Loads a templateLoads every templateLoads the identifiers of every templateselectByPortletType(String strPortletTypeId) Loads the templates registered for a portlet typeselectByPrimaryKeyList(List<Integer> listIdTemplates) Loads the templates whose identifiers are givenselectIdsByPortletType(String strPortletTypeId) Loads the identifiers of the templates registered for a portlet typevoidstore(PortletTemplate template) Updates a template
-
Method Details
-
insert
Inserts a template and sets its generated identifier- Parameters:
template- the template
-
store
Updates a template- Parameters:
template- the template
-
delete
void delete(int nIdTemplate) Deletes a template- Parameters:
nIdTemplate- the template identifier
-
load
Loads a template- Parameters:
nIdTemplate- the template identifier- Returns:
- the template, null when it does not exist
-
selectAll
List<PortletTemplate> selectAll()Loads every template- Returns:
- the templates, ordered by portlet type then identifier
-
selectByPortletType
Loads the templates registered for a portlet type- Parameters:
strPortletTypeId- the portlet type identifier- Returns:
- the templates, ordered by identifier
-
selectByPrimaryKeyList
Loads the templates whose identifiers are given- Parameters:
listIdTemplates- the template identifiers- Returns:
- the templates, ordered by portlet type then identifier
-
selectAllIds
Loads the identifiers of every template- Returns:
- the identifiers, ordered by portlet type then identifier
-
selectIdsByPortletType
Loads the identifiers of the templates registered for a portlet type- Parameters:
strPortletTypeId- the portlet type identifier- Returns:
- the identifiers, ordered by identifier
-
checkTemplateIsUsed
boolean checkTemplateIsUsed(int nIdTemplate) Tells whether at least one portlet uses a template- Parameters:
nIdTemplate- the template identifier- Returns:
- true when a portlet uses the template
-