Class DatabaseTemplateDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.template.DatabaseTemplateDAO
-
- All Implemented Interfaces:
IDatabaseTemplateDAO
public class DatabaseTemplateDAO extends Object implements IDatabaseTemplateDAO
Implementation of interface IDatabaseTemplateDAO- Author:
- vbroussard
-
-
Constructor Summary
Constructors Constructor Description DatabaseTemplateDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTemplateFromKey(String strKey)Get a template in the database from its keyvoidupdateTemplate(String strKey, String strValue)Update a template in the database
-
-
-
Method Detail
-
getTemplateFromKey
public String getTemplateFromKey(String strKey)
Get a template in the database from its key- Specified by:
getTemplateFromKeyin interfaceIDatabaseTemplateDAO- Parameters:
strKey- The key of the template to get- Returns:
- The template loaded from the database
-
updateTemplate
public void updateTemplate(String strKey, String strValue)
Update a template in the database- Specified by:
updateTemplatein interfaceIDatabaseTemplateDAO- Parameters:
strKey- The key of the templatestrValue- The new value of the template
-
-