public class HibernateProviderDAO extends java.lang.Object implements ProviderDAO
ProviderService
methods.Constructor and Description |
---|
HibernateProviderDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteProvider(Provider provider)
deletes an exisiting Provider
|
void |
deleteProviderAttributeType(ProviderAttributeType providerAttributeType) |
java.util.List<ProviderAttributeType> |
getAllProviderAttributeTypes(boolean includeRetired) |
java.util.List<Provider> |
getAllProviders(boolean includeRetired)
Gets all Providers
|
java.lang.Long |
getCountOfProviders(java.lang.String name,
boolean includeRetired) |
Provider |
getProvider(java.lang.Integer id) |
ProviderAttribute |
getProviderAttribute(java.lang.Integer providerAttributeID) |
ProviderAttribute |
getProviderAttributeByUuid(java.lang.String uuid) |
ProviderAttributeType |
getProviderAttributeType(java.lang.Integer providerAttributeTypeId) |
ProviderAttributeType |
getProviderAttributeTypeByUuid(java.lang.String uuid) |
Provider |
getProviderByIdentifier(java.lang.String identifier) |
Provider |
getProviderByUuid(java.lang.String uuid) |
java.util.List<Provider> |
getProviders(java.lang.String name,
java.util.Map<ProviderAttributeType,java.lang.String> serializedAttributeValues,
java.lang.Integer start,
java.lang.Integer length,
boolean includeRetired) |
java.util.Collection<Provider> |
getProvidersByPerson(Person person,
boolean includeRetired) |
boolean |
isProviderIdentifierUnique(Provider provider) |
Provider |
saveProvider(Provider provider)
Saves/Updates a given Provider
|
ProviderAttributeType |
saveProviderAttributeType(ProviderAttributeType providerAttributeType) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public java.util.List<Provider> getAllProviders(boolean includeRetired)
ProviderDAO
getAllProviders
in interface ProviderDAO
includeRetired
- - whether or not to include retired Providerorg.openmrs.api.db.ProviderDAO#getAllProviders()
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(java.lang.Integer id)
getProvider
in interface ProviderDAO
ProviderDAO.getProvider(java.lang.Integer)
public Provider getProviderByUuid(java.lang.String uuid)
getProviderByUuid
in interface ProviderDAO
ProviderDAO.getProviderByUuid(java.lang.String)
public java.util.Collection<Provider> getProvidersByPerson(Person person, boolean includeRetired)
getProvidersByPerson
in interface ProviderDAO
ProviderDAO.getProvidersByPerson(org.openmrs.Person, boolean)
public ProviderAttribute getProviderAttribute(java.lang.Integer providerAttributeID)
getProviderAttribute
in interface ProviderDAO
ProviderDAO.getProviderAttribute(Integer)
public ProviderAttribute getProviderAttributeByUuid(java.lang.String uuid)
getProviderAttributeByUuid
in interface ProviderDAO
ProviderDAO.getProviderAttributeByUuid(String)
public java.util.List<Provider> getProviders(java.lang.String name, java.util.Map<ProviderAttributeType,java.lang.String> serializedAttributeValues, java.lang.Integer start, java.lang.Integer length, boolean includeRetired)
getProviders
in interface ProviderDAO
org.openmrs.api.db.ProviderDAO#getProviders(java.lang.String, java.util.Map,
java.lang.Integer, java.lang.Integer)
public java.lang.Long getCountOfProviders(java.lang.String name, boolean includeRetired)
getCountOfProviders
in interface ProviderDAO
org.openmrs.api.db.ProviderDAO#getCountOfProviders(java.lang.String)
public java.util.List<ProviderAttributeType> getAllProviderAttributeTypes(boolean includeRetired)
getAllProviderAttributeTypes
in interface ProviderDAO
ProviderService.getAllProviderAttributeTypes(boolean)
,
ProviderService.getAllProviderAttributeTypes()
public ProviderAttributeType getProviderAttributeType(java.lang.Integer providerAttributeTypeId)
getProviderAttributeType
in interface ProviderDAO
ProviderService.getProviderAttributeType(Integer)
public ProviderAttributeType getProviderAttributeTypeByUuid(java.lang.String uuid)
getProviderAttributeTypeByUuid
in interface ProviderDAO
ProviderService.getProviderAttributeTypeByUuid(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) throws DAOException
isProviderIdentifierUnique
in interface ProviderDAO
DAOException
ProviderDAO.getProviderByIdentifier(java.lang.String)
public Provider getProviderByIdentifier(java.lang.String identifier)
getProviderByIdentifier
in interface ProviderDAO
ProviderDAO.getProviderByIdentifier(java.lang.String)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.