org.openmrs.api.db
Interface AdministrationDAO

All Known Implementing Classes:
HibernateAdministrationDAO

public interface AdministrationDAO

Database methods for the AdministrationService

See Also:
Context, AdministrationService

Method Summary
 void createReport(Report r)
          Create a new Report
 void createReportObject(AbstractReportObject ro)
          Create a new Report Object
 void createTribe(Tribe tribe)
          Create a new Tribe
 void deleteGlobalProperty(GlobalProperty gp)
           
 void deleteReport(Report r)
          Delete Report
 void deleteReportObject(java.lang.Integer reportObjectId)
          Delete Report Object
 void deleteTribe(Tribe tribe)
          Delete Tribe
 java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql, boolean selectOnly)
           
 java.util.List<GlobalProperty> getAllGlobalProperties()
           
 java.util.List<DataEntryStatistic> getDataEntryStatistics(java.util.Date fromDate, java.util.Date toDate, java.lang.String encounterUserColumn, java.lang.String orderUserColumn, java.lang.String groupBy)
           
 java.lang.String getGlobalProperty(java.lang.String propertyName)
           
 java.util.Collection<?> getMRNGeneratorLog()
           
 void mrnGeneratorLog(java.lang.String site, java.lang.Integer start, java.lang.Integer count)
           
 void retireTribe(Tribe tribe)
          Retire Tribe
 GlobalProperty saveGlobalProperty(GlobalProperty gp)
           
 void unretireTribe(Tribe tribe)
          Unretire Tribe
 void updateReport(Report r)
          Update Report
 void updateReportObject(AbstractReportObject ro)
          Update Report Object
 void updateTribe(Tribe tribe)
          Update Tribe
 

Method Detail

createTribe

void createTribe(Tribe tribe)
                 throws DAOException
Create a new Tribe

Parameters:
Tribe - to create
Throws:
DAOException

updateTribe

void updateTribe(Tribe tribe)
                 throws DAOException
Update Tribe

Parameters:
Tribe - to update
Throws:
DAOException

deleteTribe

void deleteTribe(Tribe tribe)
                 throws DAOException
Delete Tribe

Parameters:
Tribe - to delete
Throws:
DAOException

retireTribe

void retireTribe(Tribe tribe)
                 throws DAOException
Retire Tribe

Parameters:
Tribe - to retire
Throws:
DAOException

unretireTribe

void unretireTribe(Tribe tribe)
                   throws DAOException
Unretire Tribe

Parameters:
Tribe - to unretire
Throws:
DAOException

createReport

void createReport(Report r)
                  throws DAOException
Create a new Report

Parameters:
Report - to create
Throws:
DAOException

updateReport

void updateReport(Report r)
                  throws DAOException
Update Report

Parameters:
Report - to update
Throws:
DAOException

deleteReport

void deleteReport(Report r)
                  throws DAOException
Delete Report

Parameters:
Report - to delete
Throws:
DAOException

createReportObject

void createReportObject(AbstractReportObject ro)
                        throws DAOException
Create a new Report Object

Parameters:
Report - Object to create
Throws:
DAOException

updateReportObject

void updateReportObject(AbstractReportObject ro)
                        throws DAOException
Update Report Object

Parameters:
Report - Object to update
Throws:
DAOException

deleteReportObject

void deleteReportObject(java.lang.Integer reportObjectId)
                        throws DAOException
Delete Report Object

Parameters:
Report - Objectto delete
Throws:
DAOException

mrnGeneratorLog

void mrnGeneratorLog(java.lang.String site,
                     java.lang.Integer start,
                     java.lang.Integer count)
                     throws DAOException
Throws:
DAOException
See Also:
AdministrationService.mrnGeneratorLog(java.lang.String, java.lang.Integer, java.lang.Integer)

getMRNGeneratorLog

java.util.Collection<?> getMRNGeneratorLog()
                                           throws DAOException
Throws:
DAOException
See Also:
AdministrationService.getMRNGeneratorLog()

getGlobalProperty

java.lang.String getGlobalProperty(java.lang.String propertyName)
                                   throws DAOException
Throws:
DAOException
See Also:
AdministrationService.getGlobalProperty(String)

getAllGlobalProperties

java.util.List<GlobalProperty> getAllGlobalProperties()
                                                      throws DAOException
Throws:
DAOException
See Also:
AdministrationService.getAllGlobalProperties()

deleteGlobalProperty

void deleteGlobalProperty(GlobalProperty gp)
                          throws DAOException
Throws:
DAOException
See Also:
AdministrationService.purgeGlobalProperty(org.openmrs.GlobalProperty)

saveGlobalProperty

GlobalProperty saveGlobalProperty(GlobalProperty gp)
                                  throws DAOException
Throws:
DAOException
See Also:
AdministrationService.saveGlobalProperty(org.openmrs.GlobalProperty)

getDataEntryStatistics

java.util.List<DataEntryStatistic> getDataEntryStatistics(java.util.Date fromDate,
                                                          java.util.Date toDate,
                                                          java.lang.String encounterUserColumn,
                                                          java.lang.String orderUserColumn,
                                                          java.lang.String groupBy)
                                                          throws DAOException
Throws:
DAOException
See Also:
getDataEntryStatistics(java.util.Date, java.util.Date, java.lang.String, java.lang.String, java.lang.String)

executeSQL

java.util.List<java.util.List<java.lang.Object>> executeSQL(java.lang.String sql,
                                                            boolean selectOnly)
                                                            throws DAOException
Throws:
DAOException
See Also:
executeSQL(java.lang.String, boolean)

OpenMRS-trunk

Generated May 29 2008 02:01 AM. NOTE - these libraries are in active development and subject to change