Class DefaultDBSummaryService
-
- All Implemented Interfaces:
-
de.jnkconsulting.e3dc.easyrscp.api.service.DBSummaryService
public final class DefaultDBSummaryService implements DBSummaryServiceService to retrieve the summary data of a time period (day, month, year, etc) from the home power plant database.S
- Since:
2.0
-
-
Constructor Summary
Constructors Constructor Description DefaultDBSummaryService(ConnectionPool connectionPool, RequestResponseFrameConvert<HistoryData> convertFrameToDailySummary, RequestResponseFrameConvert<HistoryData> convertFrameToMonthlySummary, RequestResponseFrameConvert<HistoryData> convertFrameToYearlySummary, FrameCreator<LocalDate> createRequestDailySummaryFrame, FrameCreator<YearMonth> createRequestMonthlySummaryFrame, FrameCreator<Year> createRequestYearlySummaryFrame)
-
Method Summary
Modifier and Type Method Description HistoryDatareadDailySummary(LocalDate day)HistoryDatareadMonthlySummary(YearMonth yearMonth)HistoryDatareadYearlySummary(Year year)-
-
Constructor Detail
-
DefaultDBSummaryService
DefaultDBSummaryService(ConnectionPool connectionPool, RequestResponseFrameConvert<HistoryData> convertFrameToDailySummary, RequestResponseFrameConvert<HistoryData> convertFrameToMonthlySummary, RequestResponseFrameConvert<HistoryData> convertFrameToYearlySummary, FrameCreator<LocalDate> createRequestDailySummaryFrame, FrameCreator<YearMonth> createRequestMonthlySummaryFrame, FrameCreator<Year> createRequestYearlySummaryFrame)
- Parameters:
connectionPool- Connection pool to be usedconvertFrameToDailySummary- Converter to create a HistoryData object from a frame for the daily summary.convertFrameToMonthlySummary- Converter to create a HistoryData object from a frame for the monthly summary.convertFrameToYearlySummary- Converter to create a HistoryData object from a frame for the yearlu summary.createRequestDailySummaryFrame- Creator for frames to query the summary of a specific day.createRequestMonthlySummaryFrame- Creator for frames to query the summary of a specific month.createRequestYearlySummaryFrame- Creator for frames to query the summary of a specific year.
-
-
Method Detail
-
readDailySummary
HistoryData readDailySummary(LocalDate day)
-
readMonthlySummary
HistoryData readMonthlySummary(YearMonth yearMonth)
-
readYearlySummary
HistoryData readYearlySummary(Year year)
-
-
-
-