|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersonDAO
Person-related database functions
This is used by the PersonService. This should not be used directly, but rather used through the methods on the PersonService.
Use case:
PersonService ps = Context.getPersonService();
ps....
PersonService
,
Context
Method Summary | |
---|---|
void |
deletePerson(Person person)
|
void |
deletePersonAttributeType(PersonAttributeType type)
|
void |
deleteRelationship(Relationship relationship)
|
void |
deleteRelationshipType(RelationshipType relationshipType)
|
java.util.List<PersonAttributeType> |
getAllPersonAttributeTypes(boolean includeRetired)
|
java.util.List<Relationship> |
getAllRelationships(boolean includeVoided)
|
java.util.List<RelationshipType> |
getAllRelationshipTypes(boolean includeRetired)
|
java.util.List<Person> |
getPeople(java.lang.String searchPhrase,
java.lang.Boolean dead)
|
Person |
getPerson(java.lang.Integer personId)
|
PersonAddress |
getPersonAddressByUuid(java.lang.String uuid)
|
PersonAttribute |
getPersonAttribute(java.lang.Integer id)
|
PersonAttribute |
getPersonAttributeByUuid(java.lang.String uuid)
|
PersonAttributeType |
getPersonAttributeType(java.lang.Integer typeId)
|
PersonAttributeType |
getPersonAttributeTypeByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<PersonAttributeType> |
getPersonAttributeTypes(java.lang.String exactName,
java.lang.String format,
java.lang.Integer foreignKey,
java.lang.Boolean searchable)
|
Person |
getPersonByUuid(java.lang.String uuid)
Auto generated method comment |
PersonName |
getPersonNameByUuid(java.lang.String uuid)
|
Relationship |
getRelationship(java.lang.Integer relationshipId)
|
Relationship |
getRelationshipByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<Relationship> |
getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
|
RelationshipType |
getRelationshipType(java.lang.Integer relationshipTypeId)
|
RelationshipType |
getRelationshipTypeByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<RelationshipType> |
getRelationshipTypes(java.lang.String relationshipTypeName,
java.lang.Boolean preferred)
|
java.lang.String |
getSavedPersonAttributeTypeName(PersonAttributeType personAttributeType)
Gets the value of name currently saved in the database for the given personAttributeType, bypassing any caches. |
java.util.Set<Person> |
getSimilarPeople(java.lang.String name,
java.lang.Integer birthyear,
java.lang.String gender)
|
Person |
savePerson(Person person)
|
PersonAttributeType |
savePersonAttributeType(PersonAttributeType type)
|
Relationship |
saveRelationship(Relationship relationship)
|
RelationshipType |
saveRelationshipType(RelationshipType relationshipType)
|
Method Detail |
---|
java.util.Set<Person> getSimilarPeople(java.lang.String name, java.lang.Integer birthyear, java.lang.String gender) throws DAOException
DAOException
PersonService.getSimilarPeople(java.lang.String, java.lang.Integer,
java.lang.String)
java.util.List<Person> getPeople(java.lang.String searchPhrase, java.lang.Boolean dead) throws DAOException
DAOException
PersonService.getPeople(String, Boolean)
PersonAttributeType savePersonAttributeType(PersonAttributeType type) throws DAOException
DAOException
PersonService.savePersonAttributeType(org.openmrs.PersonAttributeType)
void deletePersonAttributeType(PersonAttributeType type) throws DAOException
DAOException
PersonService.purgePersonAttributeType(org.openmrs.PersonAttributeType)
java.util.List<PersonAttributeType> getPersonAttributeTypes(java.lang.String exactName, java.lang.String format, java.lang.Integer foreignKey, java.lang.Boolean searchable) throws DAOException
DAOException
PersonService.getPersonAttributeTypes(java.lang.String,
java.lang.String, java.lang.Integer, java.lang.Boolean)
java.util.List<PersonAttributeType> getAllPersonAttributeTypes(boolean includeRetired) throws DAOException
DAOException
PersonService.getAllPersonAttributeTypes()
,
PersonService.getAllPersonAttributeTypes(boolean)
PersonAttributeType getPersonAttributeType(java.lang.Integer typeId) throws DAOException
DAOException
PersonService.getPersonAttributeType(java.lang.Integer)
PersonAttribute getPersonAttribute(java.lang.Integer id) throws DAOException
DAOException
PersonService.getPersonAttribute(java.lang.Integer)
Relationship getRelationship(java.lang.Integer relationshipId) throws DAOException
DAOException
PersonService.getRelationship(java.lang.Integer)
java.util.List<Relationship> getAllRelationships(boolean includeVoided) throws DAOException
DAOException
PersonService.getAllRelationships(boolean)
RelationshipType getRelationshipType(java.lang.Integer relationshipTypeId) throws DAOException
DAOException
PersonService.getRelationshipType(java.lang.Integer)
java.util.List<RelationshipType> getRelationshipTypes(java.lang.String relationshipTypeName, java.lang.Boolean preferred) throws DAOException
DAOException
PersonService.getRelationshipTypes(java.lang.String, java.lang.Boolean)
Person savePerson(Person person) throws DAOException
DAOException
PersonService.savePerson(org.openmrs.Person)
void deletePerson(Person person) throws DAOException
DAOException
PersonService.deletePerson(org.openmrs.Person)
Person getPerson(java.lang.Integer personId) throws DAOException
DAOException
PersonService.getPerson(java.lang.Integer)
Relationship saveRelationship(Relationship relationship) throws DAOException
DAOException
PersonService.saveRelationship(org.openmrs.Relationship)
void deleteRelationship(Relationship relationship) throws DAOException
DAOException
PersonService.purgeRelationship(org.openmrs.Relationship)
java.util.List<Relationship> getRelationships(Person fromPerson, Person toPerson, RelationshipType relType) throws DAOException
DAOException
PersonService.getRelationships(org.openmrs.Person, org.openmrs.Person,
org.openmrs.RelationshipType)
RelationshipType saveRelationshipType(RelationshipType relationshipType) throws DAOException
DAOException
PersonService.saveRelationshipType(org.openmrs.RelationshipType)
void deleteRelationshipType(RelationshipType relationshipType) throws DAOException
DAOException
PersonService.deleteRelationshipType(org.openmrs.RelationshipType)
Person getPersonByUuid(java.lang.String uuid)
uuid
-
PersonAddress getPersonAddressByUuid(java.lang.String uuid)
PersonAttribute getPersonAttributeByUuid(java.lang.String uuid)
PersonName getPersonNameByUuid(java.lang.String uuid)
Relationship getRelationshipByUuid(java.lang.String uuid)
uuid
-
RelationshipType getRelationshipTypeByUuid(java.lang.String uuid)
uuid
-
PersonAttributeType getPersonAttributeTypeByUuid(java.lang.String uuid)
uuid
-
java.lang.String getSavedPersonAttributeTypeName(PersonAttributeType personAttributeType)
OpenmrsConstants.GLOBAL_PROPERTIES_OF_PERSON_ATTRIBUTES
and reference the given
personAttributeType.
personAttributeType
- the personAttributeType get the the name of
java.util.List<RelationshipType> getAllRelationshipTypes(boolean includeRetired)
org.openmrs.api.PersonService#getAllRelationshipTypes(java.lang.Boolean)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |