Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/16/08 18:28:28 (8 months ago)
Author:
bwolfe
Message:

api-refactoring: Re-refactoring some of the api services

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/api_refactoring/src/api/org/openmrs/api/db/AdministrationDAO.java

    r4198 r4240  
    1818import java.util.List; 
    1919 
    20 import org.openmrs.Concept; 
    21 import org.openmrs.ConceptClass; 
    22 import org.openmrs.ConceptDatatype; 
    23 import org.openmrs.ConceptProposal; 
    2420import org.openmrs.DataEntryStatistic; 
    25 import org.openmrs.EncounterType; 
    2621import org.openmrs.FieldType; 
    2722import org.openmrs.GlobalProperty; 
    28 import org.openmrs.Location; 
    2923import org.openmrs.Tribe; 
    3024import org.openmrs.reporting.AbstractReportObject; 
     
    3832 */ 
    3933public interface AdministrationDAO { 
    40          
    41         /** 
    42          * Create a new EncounterType 
    43          * @param EncounterType to create 
    44          * @throws DAOException 
    45          */ 
    46         public void createEncounterType(EncounterType encounterType) throws DAOException; 
    47  
    48         /** 
    49          * Update an encounter type 
    50          * @param EncounterType to update 
    51          * @throws DAOException 
    52          */ 
    53         public void updateEncounterType(EncounterType encounterType) throws DAOException; 
    54  
    55         /** 
    56          * Delete an encounter type 
    57          * @param EncounterType to delete 
    58          * @throws DAOException 
    59          */ 
    60         public void deleteEncounterType(EncounterType encounterType) throws DAOException; 
    6134 
    6235        /** 
     
    11790         
    11891        /** 
    119          * Create a new Location 
    120          * @param Location to create 
    121          * @throws DAOException 
    122          */ 
    123         public void createLocation(Location location) throws DAOException; 
    124  
    125         /** 
    126          * Update Location 
    127          * @param Location to update 
    128          * @throws DAOException 
    129          */ 
    130         public void updateLocation(Location location) throws DAOException; 
    131  
    132         /** 
    133          * Delete Location 
    134          * @param Location to delete 
    135          * @throws DAOException 
    136          */ 
    137         public void deleteLocation(Location location) throws DAOException;       
    138          
    139         /** 
    140          * Create a new ConceptClass 
    141          * @param ConceptClass to create 
    142          * @throws DAOException 
    143          * @deprecated moved to ConceptDAO 
    144          */ 
    145         public void createConceptClass(ConceptClass cc) throws DAOException; 
    146  
    147         /** 
    148          * Update ConceptClass 
    149          * @param ConceptClass to update 
    150          * @throws DAOException 
    151          * @deprecated moved to ConceptDAO 
    152          */ 
    153         public void updateConceptClass(ConceptClass cc) throws DAOException; 
    154  
    155         /** 
    156          * Delete ConceptClass 
    157          * @param ConceptClass to delete 
    158          * @throws DAOException 
    159          * @deprecated moved to ConceptDAO 
    160          */ 
    161         public void deleteConceptClass(ConceptClass cc) throws DAOException;     
    162  
    163         /** 
    164          * Create a new ConceptDatatype 
    165          * @param ConceptDatatype to create 
    166          * @throws DAOException 
    167          * @deprecated moved to ConceptDAO 
    168          */ 
    169         public void createConceptDatatype(ConceptDatatype cd) throws DAOException; 
    170  
    171         /** 
    172          * Update ConceptDatatype 
    173          * @param ConceptDatatype to update 
    174          * @throws DAOException 
    175          * @deprecated moved to ConceptDAO 
    176          */ 
    177         public void updateConceptDatatype(ConceptDatatype cd) throws DAOException; 
    178  
    179         /** 
    180          * Delete ConceptDatatype 
    181          * @param ConceptDatatype to delete 
    182          * @throws DAOException 
    183          * @deprecated moved to ConceptDAO 
    184          */ 
    185         public void deleteConceptDatatype(ConceptDatatype cd) throws DAOException;       
    186          
    187         /** 
    18892         * Create a new Report 
    18993         * @param Report to create 
     
    228132 
    229133        /** 
    230          * Iterates over the words in names and synonyms (for each locale) and updates the concept word business table  
    231          * @param concept 
    232          * @throws DAOException 
    233          * @deprecated moved to ConceptDAO 
    234          */ 
    235         public void updateConceptWord(Concept concept) throws DAOException; 
    236          
    237         /** 
    238          * Updates the concept set derived business table for this concept (bursting the concept sets)  
    239          * @param concept 
    240          * @throws DAOException 
    241          * @deprecated moved to ConceptDAO 
    242          */ 
    243         public void updateConceptSetDerived(Concept concept) throws DAOException; 
    244          
    245         /** 
    246          * Iterates over all concepts calling updateConceptSetDerived(concept) 
    247          * @throws DAOException 
    248          * @deprecated moved to ConceptDAO 
    249          */ 
    250         public void updateConceptSetDerived() throws DAOException; 
    251          
    252         /** 
    253          * @deprecated moved to ConceptDAO 
    254          */ 
    255         public void createConceptProposal(ConceptProposal cp) throws DAOException; 
    256          
    257         /** 
    258          * @deprecated moved to ConceptDAO 
    259          */ 
    260         public void updateConceptProposal(ConceptProposal cp) throws DAOException; 
    261          
    262         /** 
    263134         * @see org.openmrs.api.AdministrationService#mrnGeneratorLog(java.lang.String, java.lang.Integer, java.lang.Integer) 
    264135         */