|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocationDAO
Location-related database functions
Method Summary | |
---|---|
void |
deleteLocation(Location location)
Completely remove the location from the database. |
void |
deleteLocationTag(LocationTag tag)
Completely remove the location tag from the database. |
java.util.List<Location> |
getAllLocations(boolean includeRetired)
Get all locations |
java.util.List<LocationTag> |
getAllLocationTags(boolean includeRetired)
Get all location tags |
Location |
getLocation(java.lang.Integer locationId)
Get a location by locationId |
Location |
getLocation(java.lang.String name)
Get a location by name |
Location |
getLocationByUuid(java.lang.String uuid)
|
java.util.List<Location> |
getLocations(java.lang.String search)
Find all locations with matching names. |
LocationTag |
getLocationTag(java.lang.Integer locationTagId)
Get a location tag by locationTagId |
LocationTag |
getLocationTagByName(java.lang.String tag)
Get a location tag by name |
LocationTag |
getLocationTagByUuid(java.lang.String uuid)
|
java.util.List<LocationTag> |
getLocationTags(java.lang.String search)
Find all location tags with matching names. |
Location |
saveLocation(Location location)
Create or update a location. |
LocationTag |
saveLocationTag(LocationTag tag)
Create or update a location tag. |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set the Hibernate SessionFactory to connect to the database. |
Method Detail |
---|
void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- Location saveLocation(Location location)
location
- Location
to save
Location
Location getLocation(java.lang.Integer locationId)
locationId
- Internal Integer
identifier of the Location to get
- Returns:
- the requested
Location
Location getLocation(java.lang.String name)
name
- String name of the Location
to get
Location
java.util.List<Location> getAllLocations(boolean includeRetired)
includeRetired
- boolean - include retired locations as well?
List
object of all Location
s, possibly including
retired locationsjava.util.List<Location> getLocations(java.lang.String search)
search
- String name to search for
List
object of matching locationsvoid deleteLocation(Location location)
location
- Location
object to deleteLocationTag saveLocationTag(LocationTag tag)
tag
-
LocationTag
LocationTag getLocationTag(java.lang.Integer locationTagId)
locationTagId
locationTagId
- Internal Integer
identifier of the tag to get
LocationTag
LocationTag getLocationTagByName(java.lang.String tag)
tag
- String representation of the LocationTag
to get
LocationTag
java.util.List<LocationTag> getAllLocationTags(boolean includeRetired)
includeRetired
- boolean - include retired tags as well?
LocationTag
s, possibly included
retired onesjava.util.List<LocationTag> getLocationTags(java.lang.String search)
search
- name to search
LocationTags
void deleteLocationTag(LocationTag tag)
tag
- The LocationTag
to deleteLocation getLocationByUuid(java.lang.String uuid)
uuid
- the uuid to look for
LocationTag getLocationTagByUuid(java.lang.String uuid)
uuid
-
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |