org.openmrs.api.db.hibernate
Class HibernateAdministrationDAO

java.lang.Object
  extended by org.openmrs.api.db.hibernate.HibernateAdministrationDAO
All Implemented Interfaces:
AdministrationDAO

public class HibernateAdministrationDAO
extends java.lang.Object
implements AdministrationDAO

Hibernate specific database methods for the AdministrationService

See Also:
Context, AdministrationDAO, AdministrationService

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
HibernateAdministrationDAO()
           
 
Method Summary
 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)
           
 java.util.Collection getMRNGeneratorLog()
           
 void mrnGeneratorLog(java.lang.String site, java.lang.Integer start, java.lang.Integer count)
           
 GlobalProperty saveGlobalProperty(GlobalProperty gp)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

HibernateAdministrationDAO

public HibernateAdministrationDAO()
Method Detail

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory

Parameters:
sessionFactory -

createReport

@Deprecated
public void createReport(Report r)
                  throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Create a new Report

Specified by:
createReport in interface AdministrationDAO
Parameters:
r - Report to create
Throws:
DAOException
See Also:
AdministrationService.createReport(org.openmrs.reporting.Report)

updateReport

@Deprecated
public void updateReport(Report r)
                  throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Update Report

Specified by:
updateReport in interface AdministrationDAO
Parameters:
r - Report to update
Throws:
DAOException
See Also:
AdministrationService.updateReport(org.openmrs.reporting.Report)

deleteReport

@Deprecated
public void deleteReport(Report r)
                  throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Delete Report

Specified by:
deleteReport in interface AdministrationDAO
Parameters:
r - Report to delete
Throws:
DAOException
See Also:
AdministrationService.deleteReport(org.openmrs.reporting.Report)

mrnGeneratorLog

public void mrnGeneratorLog(java.lang.String site,
                            java.lang.Integer start,
                            java.lang.Integer count)
Specified by:
mrnGeneratorLog in interface AdministrationDAO
See Also:
AdministrationService.mrnGeneratorLog(java.lang.String,java.lang.Integer,java.lang.Integer)

getMRNGeneratorLog

public java.util.Collection getMRNGeneratorLog()
Specified by:
getMRNGeneratorLog in interface AdministrationDAO
See Also:
AdministrationService.getMRNGeneratorLog()

createReportObject

@Deprecated
public void createReportObject(AbstractReportObject ro)
                        throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Create a new Report Object

Specified by:
createReportObject in interface AdministrationDAO
Parameters:
ro - AbstractReportObject to create
Throws:
DAOException

updateReportObject

@Deprecated
public void updateReportObject(AbstractReportObject ro)
                        throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Update Report Object

Specified by:
updateReportObject in interface AdministrationDAO
Parameters:
ro - AbstractReportObject to update
Throws:
DAOException

deleteReportObject

@Deprecated
public void deleteReportObject(java.lang.Integer reportObjectId)
                        throws DAOException
Deprecated. see reportingcompatibility module

Description copied from interface: AdministrationDAO
Delete Report Object

Specified by:
deleteReportObject in interface AdministrationDAO
Parameters:
reportObjectId - Internal identifier for report object to delete
Throws:
DAOException

getGlobalProperty

public java.lang.String getGlobalProperty(java.lang.String propertyName)
                                   throws DAOException
Specified by:
getGlobalProperty in interface AdministrationDAO
Throws:
DAOException
See Also:
AdministrationDAO.getGlobalProperty(java.lang.String)

getGlobalPropertyObject

public GlobalProperty getGlobalPropertyObject(java.lang.String propertyName)
Specified by:
getGlobalPropertyObject in interface AdministrationDAO
See Also:
AdministrationDAO.getGlobalPropertyObject(java.lang.String)

getGlobalPropertyByUuid

public GlobalProperty getGlobalPropertyByUuid(java.lang.String uuid)
                                       throws DAOException
Specified by:
getGlobalPropertyByUuid in interface AdministrationDAO
Throws:
DAOException

getAllGlobalProperties

public java.util.List<GlobalProperty> getAllGlobalProperties()
                                                      throws DAOException
Specified by:
getAllGlobalProperties in interface AdministrationDAO
Throws:
DAOException
See Also:
AdministrationDAO.getAllGlobalProperties()

getGlobalPropertiesByPrefix

public java.util.List<GlobalProperty> getGlobalPropertiesByPrefix(java.lang.String prefix)
Specified by:
getGlobalPropertiesByPrefix in interface AdministrationDAO
See Also:
AdministrationDAO.getGlobalPropertiesByPrefix(java.lang.String)

getGlobalPropertiesBySuffix

public java.util.List<GlobalProperty> getGlobalPropertiesBySuffix(java.lang.String suffix)
Specified by:
getGlobalPropertiesBySuffix in interface AdministrationDAO
See Also:
AdministrationDAO.getGlobalPropertiesBySuffix(java.lang.String)

deleteGlobalProperty

public void deleteGlobalProperty(GlobalProperty property)
                          throws DAOException
Specified by:
deleteGlobalProperty in interface AdministrationDAO
Throws:
DAOException
See Also:
AdministrationDAO.deleteGlobalProperty(GlobalProperty)

saveGlobalProperty

public GlobalProperty saveGlobalProperty(GlobalProperty gp)
                                  throws DAOException
Specified by:
saveGlobalProperty in interface AdministrationDAO
Throws:
DAOException
See Also:
AdministrationDAO.saveGlobalProperty(org.openmrs.GlobalProperty)

executeSQL

public java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql,
                                                                   boolean selectOnly)
                                                            throws DAOException
Specified by:
executeSQL in interface AdministrationDAO
Throws:
DAOException
See Also:
AdministrationDAO.executeSQL(java.lang.String, boolean)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change