|
|
||||||||
| 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
DAOExceptionPersonService.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
DAOExceptionPersonService.getPeople(String, Boolean)
PersonAttributeType savePersonAttributeType(PersonAttributeType type)
throws DAOException
DAOExceptionPersonService.savePersonAttributeType(org.openmrs.PersonAttributeType)
void deletePersonAttributeType(PersonAttributeType type)
throws DAOException
DAOExceptionPersonService.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
DAOExceptionPersonService.getPersonAttributeTypes(java.lang.String,
java.lang.String, java.lang.Integer, java.lang.Boolean)
java.util.List<PersonAttributeType> getAllPersonAttributeTypes(boolean includeRetired)
throws DAOException
DAOExceptionPersonService.getAllPersonAttributeTypes(),
PersonService.getAllPersonAttributeTypes(boolean)
PersonAttributeType getPersonAttributeType(java.lang.Integer typeId)
throws DAOException
DAOExceptionPersonService.getPersonAttributeType(java.lang.Integer)
PersonAttribute getPersonAttribute(java.lang.Integer id)
throws DAOException
DAOExceptionPersonService.getPersonAttribute(java.lang.Integer)
Relationship getRelationship(java.lang.Integer relationshipId)
throws DAOException
DAOExceptionPersonService.getRelationship(java.lang.Integer)
java.util.List<Relationship> getAllRelationships(boolean includeVoided)
throws DAOException
DAOExceptionPersonService.getAllRelationships(boolean)
RelationshipType getRelationshipType(java.lang.Integer relationshipTypeId)
throws DAOException
DAOExceptionPersonService.getRelationshipType(java.lang.Integer)
java.util.List<RelationshipType> getRelationshipTypes(java.lang.String relationshipTypeName,
java.lang.Boolean preferred)
throws DAOException
DAOExceptionPersonService.getRelationshipTypes(java.lang.String, java.lang.Boolean)
Person savePerson(Person person)
throws DAOException
DAOExceptionPersonService.savePerson(org.openmrs.Person)
void deletePerson(Person person)
throws DAOException
DAOExceptionPersonService.deletePerson(org.openmrs.Person)
Person getPerson(java.lang.Integer personId)
throws DAOException
DAOExceptionPersonService.getPerson(java.lang.Integer)
Relationship saveRelationship(Relationship relationship)
throws DAOException
DAOExceptionPersonService.saveRelationship(org.openmrs.Relationship)
void deleteRelationship(Relationship relationship)
throws DAOException
DAOExceptionPersonService.purgeRelationship(org.openmrs.Relationship)
java.util.List<Relationship> getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
throws DAOException
DAOExceptionPersonService.getRelationships(org.openmrs.Person, org.openmrs.Person,
org.openmrs.RelationshipType)
RelationshipType saveRelationshipType(RelationshipType relationshipType)
throws DAOException
DAOExceptionPersonService.saveRelationshipType(org.openmrs.RelationshipType)
void deleteRelationshipType(RelationshipType relationshipType)
throws DAOException
DAOExceptionPersonService.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 | ||||||||