|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.db.hibernate.HibernateTemplateDAO
public class HibernateTemplateDAO
Constructor Summary | |
---|---|
HibernateTemplateDAO()
|
Method Summary | |
---|---|
void |
createTemplate(Template template)
Create new template. |
void |
deleteTemplate(Template template)
Delete existing template. |
Template |
getTemplate(java.lang.Integer id)
Get message template by id |
java.util.List<Template> |
getTemplates()
Get all message templates |
java.util.List<Template> |
getTemplatesByName(java.lang.String name)
Get message template by name |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory |
void |
updateTemplate(Template template)
Update existing template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateTemplateDAO()
Method Detail |
---|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public java.util.List<Template> getTemplates()
TemplateDAO
getTemplates
in interface TemplateDAO
public Template getTemplate(java.lang.Integer id)
TemplateDAO
getTemplate
in interface TemplateDAO
id
- internal message template identifier
public java.util.List<Template> getTemplatesByName(java.lang.String name)
TemplateDAO
getTemplatesByName
in interface TemplateDAO
name
- message template name
public void createTemplate(Template template) throws DAOException
TemplateDAO
createTemplate
in interface TemplateDAO
DAOException
public void updateTemplate(Template template) throws DAOException
TemplateDAO
updateTemplate
in interface TemplateDAO
DAOException
public void deleteTemplate(Template template) throws DAOException
TemplateDAO
deleteTemplate
in interface TemplateDAO
DAOException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |