Package org.openhab.core.persistence
Interface QueryablePersistenceService
- All Superinterfaces:
PersistenceService
- All Known Subinterfaces:
ModifiablePersistenceService
A queryable persistence service which can be used to store and retrieve
data from openHAB. This is most likely some kind of database system.
- Author:
- Kai Kreuzer - Initial contribution, Chris Jackson - Added getItems method
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set ofPersistenceItemInfo
about items that are stored in the persistence service.query
(FilterCriteria filter) Queries thePersistenceService
for historic data with a givenFilterCriteria
.Methods inherited from interface org.openhab.core.persistence.PersistenceService
getDefaultStrategies, getId, getLabel, store, store
-
Method Details
-
query
Queries thePersistenceService
for historic data with a givenFilterCriteria
.- Parameters:
filter
- the filter to apply to the query- Returns:
- a time series of items
-
getItemInfo
Set<PersistenceItemInfo> getItemInfo()Returns a set ofPersistenceItemInfo
about items that are stored in the persistence service. This allows the persistence service to return information about items that are no long available as anItem
in openHAB. If it is not possible to retrieve the information an empty set should be returned.- Returns:
- a set of information about the persisted items
-