public class HibernateAdministrationDAO extends java.lang.Object implements AdministrationDAO, org.springframework.context.ApplicationContextAware
Context,
AdministrationDAO,
AdministrationService| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateAdministrationDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
createReport(Report r)
Deprecated.
see reportingcompatibility module
|
void |
createReportObject(AbstractReportObject ro)
Deprecated.
see reportingcompatibility module
|
void |
deleteGlobalProperty(GlobalProperty property) |
void |
deleteReport(Report r)
Deprecated.
see reportingcompatibility module
|
void |
deleteReportObject(java.lang.Integer reportObjectId)
Deprecated.
see reportingcompatibility module
|
java.util.List<java.util.List<java.lang.Object>> |
executeSQL(java.lang.String sql,
boolean selectOnly) |
java.util.List<GlobalProperty> |
getAllGlobalProperties() |
java.util.List<GlobalProperty> |
getGlobalPropertiesByPrefix(java.lang.String prefix) |
java.util.List<GlobalProperty> |
getGlobalPropertiesBySuffix(java.lang.String suffix) |
java.lang.String |
getGlobalProperty(java.lang.String propertyName) |
GlobalProperty |
getGlobalPropertyByUuid(java.lang.String uuid) |
GlobalProperty |
getGlobalPropertyObject(java.lang.String propertyName) |
int |
getMaximumPropertyLength(java.lang.Class<? extends OpenmrsObject> aClass,
java.lang.String fieldName) |
java.util.Collection |
getMRNGeneratorLog() |
protected java.util.List<org.springframework.validation.Validator> |
getValidators(java.lang.Object obj)
Fetches all validators that are registered
|
void |
mrnGeneratorLog(java.lang.String site,
java.lang.Integer start,
java.lang.Integer count) |
GlobalProperty |
saveGlobalProperty(GlobalProperty gp) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory
|
void |
updateReport(Report r)
Deprecated.
see reportingcompatibility module
|
void |
updateReportObject(AbstractReportObject ro)
Deprecated.
see reportingcompatibility module
|
void |
validate(java.lang.Object object,
org.springframework.validation.Errors errors) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - @Deprecated public void createReport(Report r) throws DAOException
AdministrationDAOcreateReport in interface AdministrationDAOr - Report to createDAOExceptionAdministrationService.createReport(org.openmrs.reporting.Report)@Deprecated public void updateReport(Report r) throws DAOException
AdministrationDAOupdateReport in interface AdministrationDAOr - Report to updateDAOExceptionAdministrationService.updateReport(org.openmrs.reporting.Report)@Deprecated public void deleteReport(Report r) throws DAOException
AdministrationDAOdeleteReport in interface AdministrationDAOr - Report to deleteDAOExceptionAdministrationService.deleteReport(org.openmrs.reporting.Report)public void mrnGeneratorLog(java.lang.String site,
java.lang.Integer start,
java.lang.Integer count)
mrnGeneratorLog in interface AdministrationDAOAdministrationService.mrnGeneratorLog(java.lang.String,java.lang.Integer,java.lang.Integer)public java.util.Collection getMRNGeneratorLog()
getMRNGeneratorLog in interface AdministrationDAOAdministrationService.getMRNGeneratorLog()@Deprecated public void createReportObject(AbstractReportObject ro) throws DAOException
AdministrationDAOcreateReportObject in interface AdministrationDAOro - AbstractReportObject to createDAOException@Deprecated public void updateReportObject(AbstractReportObject ro) throws DAOException
AdministrationDAOupdateReportObject in interface AdministrationDAOro - AbstractReportObject to updateDAOException@Deprecated
public void deleteReportObject(java.lang.Integer reportObjectId)
throws DAOException
AdministrationDAOdeleteReportObject in interface AdministrationDAOreportObjectId - Internal identifier for report object to deleteDAOExceptionpublic java.lang.String getGlobalProperty(java.lang.String propertyName)
throws DAOException
getGlobalProperty in interface AdministrationDAODAOExceptionAdministrationDAO.getGlobalProperty(java.lang.String)public GlobalProperty getGlobalPropertyObject(java.lang.String propertyName)
getGlobalPropertyObject in interface AdministrationDAOAdministrationDAO.getGlobalPropertyObject(java.lang.String)public GlobalProperty getGlobalPropertyByUuid(java.lang.String uuid) throws DAOException
getGlobalPropertyByUuid in interface AdministrationDAODAOExceptionpublic java.util.List<GlobalProperty> getAllGlobalProperties() throws DAOException
getAllGlobalProperties in interface AdministrationDAODAOExceptionAdministrationDAO.getAllGlobalProperties()public java.util.List<GlobalProperty> getGlobalPropertiesByPrefix(java.lang.String prefix)
getGlobalPropertiesByPrefix in interface AdministrationDAOAdministrationDAO.getGlobalPropertiesByPrefix(java.lang.String)public java.util.List<GlobalProperty> getGlobalPropertiesBySuffix(java.lang.String suffix)
getGlobalPropertiesBySuffix in interface AdministrationDAOAdministrationDAO.getGlobalPropertiesBySuffix(java.lang.String)public void deleteGlobalProperty(GlobalProperty property) throws DAOException
deleteGlobalProperty in interface AdministrationDAODAOExceptionAdministrationDAO.deleteGlobalProperty(GlobalProperty)public GlobalProperty saveGlobalProperty(GlobalProperty gp) throws DAOException
saveGlobalProperty in interface AdministrationDAODAOExceptionAdministrationDAO.saveGlobalProperty(org.openmrs.GlobalProperty)public java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql,
boolean selectOnly)
throws DAOException
executeSQL in interface AdministrationDAODAOExceptionAdministrationDAO.executeSQL(java.lang.String, boolean)public int getMaximumPropertyLength(java.lang.Class<? extends OpenmrsObject> aClass, java.lang.String fieldName)
getMaximumPropertyLength in interface AdministrationDAOAdministrationService.getMaximumPropertyLength(Class, String)public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void validate(java.lang.Object object,
org.springframework.validation.Errors errors)
throws DAOException
validate in interface AdministrationDAODAOExceptionAdministrationDAO.validate(java.lang.Object, Errors)protected java.util.List<org.springframework.validation.Validator> getValidators(java.lang.Object obj)
obj - the object that will be validatedCopyright © 2020 OpenMRS Inc.. All Rights Reserved.