public interface StatisticSearchSession extends MeterQuerySession
This session provides methods for searching among statistics The search
query is constructed using the StatisticQuery.
getStatisticsByQuery() is the basic search method and
returns a list of statistics. A more advanced search may be performed with
getStatisticsBySearch(). It accepts a
StatisticSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getStatisticsBySearch() returns a
StatisticSearchResults that can be used to access the resulting
StatisticList or be used to perform a search within the
result set through StatisticSearch.
This session defines views that offer differing behaviors for searching.
| Modifier and Type | Method and Description |
|---|---|
StatisticQuery |
getStatisticQueryFromInspector(StatisticQueryInspector statisticQueryInspector)
Gets a statistic query from an inspector.
|
StatisticSearchResults |
getStatisticsBySearch(StatisticQuery statisticQuery,
StatisticSearch statisticSearch)
Gets the search results matching the given search query using the
given search.
|
StatisticSearch |
getStatisticSearch()
Gets a statistic search.
|
StatisticSearchOrder |
getStatisticSearchOrder()
Gets a statistic search order.
|
canSearchMeters, getMeterQuery, getMetersByQuery, getUtility, getUtilityId, useFederatedUtilityView, useIsolatedUtilityViewgetAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseStatisticSearch getStatisticSearch()
mandatory - This method must be implemented. StatisticSearchOrder getStatisticSearchOrder()
StatisticSearchOrder
is supplied to a StatisticSearch to specify the
ordering of results.mandatory - This method must be implemented. StatisticSearchResults getStatisticsBySearch(StatisticQuery statisticQuery, StatisticSearch statisticSearch) throws OperationFailedException, PermissionDeniedException
statisticQuery - the statistics querystatisticSearch - the statistics searchNullArgumentException - statisticQuery
or statisticSearch is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - statisticQuery or
statisticSearch is not of this servicemandatory - This method must be implemented. StatisticQuery getStatisticQueryFromInspector(StatisticQueryInspector statisticQueryInspector)
StatisticSearchResults. statisticQueryInspector - a statistic query inspectorNullArgumentException - statisticQueryInspector
is null UnsupportedException - statisticQueryInspector
is not of this servicemandatory - This method must be implemented.