public class HibernateProviderDAO extends Object implements ProviderDAO
ProviderService
methods.Constructor and Description |
---|
HibernateProviderDAO() |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public List<Provider> getAllProviders(boolean includeRetired)
ProviderDAO
getAllProviders
in interface ProviderDAO
includeRetired
- - whether or not to include retired ProviderProviderDAO.getAllProviders(boolean)
public Provider saveProvider(Provider provider)
ProviderDAO
saveProvider
in interface ProviderDAO
ProviderDAO.saveProvider(org.openmrs.Provider)
public void deleteProvider(Provider provider)
ProviderDAO
deleteProvider
in interface ProviderDAO
ProviderDAO.deleteProvider(org.openmrs.Provider)
public Provider getProvider(Integer id)
getProvider
in interface ProviderDAO
ProviderDAO.getProvider(java.lang.Integer)
public Provider getProviderByUuid(String uuid)
getProviderByUuid
in interface ProviderDAO
ProviderDAO.getProviderByUuid(java.lang.String)
public Collection<Provider> getProvidersByPerson(Person person, boolean includeRetired)
getProvidersByPerson
in interface ProviderDAO
ProviderDAO.getProvidersByPerson(org.openmrs.Person, boolean)
public ProviderAttribute getProviderAttribute(Integer providerAttributeID)
getProviderAttribute
in interface ProviderDAO
ProviderDAO.getProviderAttribute(Integer)
public ProviderAttribute getProviderAttributeByUuid(String uuid)
getProviderAttributeByUuid
in interface ProviderDAO
ProviderDAO.getProviderAttributeByUuid(String)
public List<Provider> getProviders(String name, Map<ProviderAttributeType,String> serializedAttributeValues, Integer start, Integer length, boolean includeRetired)
getProviders
in interface ProviderDAO
ProviderDAO.getProviders(String, Map, Integer, Integer, boolean)
public Long getCountOfProviders(String name, boolean includeRetired)
getCountOfProviders
in interface ProviderDAO
ProviderDAO.getCountOfProviders(String, boolean)
public List<ProviderAttributeType> getAllProviderAttributeTypes(boolean includeRetired)
getAllProviderAttributeTypes
in interface ProviderDAO
ProviderService.getAllProviderAttributeTypes(boolean)
,
ProviderService.getAllProviderAttributeTypes()
public ProviderAttributeType getProviderAttributeType(Integer providerAttributeTypeId)
getProviderAttributeType
in interface ProviderDAO
ProviderService.getProviderAttributeType(Integer)
public ProviderAttributeType getProviderAttributeTypeByUuid(String uuid)
getProviderAttributeTypeByUuid
in interface ProviderDAO
ProviderService.getProviderAttributeTypeByUuid(String)
public ProviderAttributeType getProviderAttributeTypeByName(String name)
getProviderAttributeTypeByName
in interface ProviderDAO
ProviderService.getProviderAttributeTypeByName(String)
public ProviderAttributeType saveProviderAttributeType(ProviderAttributeType providerAttributeType)
saveProviderAttributeType
in interface ProviderDAO
ProviderService.saveProviderAttributeType(ProviderAttributeType)
public void deleteProviderAttributeType(ProviderAttributeType providerAttributeType)
deleteProviderAttributeType
in interface ProviderDAO
ProviderService.purgeProviderAttributeType(ProviderAttributeType)
public boolean isProviderIdentifierUnique(Provider provider)
isProviderIdentifierUnique
in interface ProviderDAO
ProviderDAO.getProviderByIdentifier(java.lang.String)
public Provider getProviderByIdentifier(String identifier)
getProviderByIdentifier
in interface ProviderDAO
ProviderDAO.getProviderByIdentifier(java.lang.String)
Copyright © 2024 OpenMRS Inc.. All rights reserved.