Package org.emau.icmvc.ganimed.ttp.psn
Interface StatisticManager
public interface StatisticManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStat
(StatisticDTO stat) insert a new statisic bean into the databasevoid
enableScheduling
(boolean enable) get all generated statisticsget first generated statisticget last generated statisticgetStatsFromTo
(Date from, Date to) creates a new stat entry
-
Method Details
-
getFirstStats
StatisticDTO getFirstStats()get first generated statistic- Returns:
- first generated stat
-
getLatestStats
StatisticDTO getLatestStats()get last generated statistic- Returns:
- last generated stat
-
getAllStats
List<StatisticDTO> getAllStats()get all generated statistics- Returns:
- list of stats
-
getStatsFromTo
-
updateStats
StatisticDTO updateStats()creates a new stat entry- Returns:
- created stat entry
-
addStat
insert a new statisic bean into the database- Parameters:
stat
- statistical data
-
enableScheduling
void enableScheduling(boolean enable)
-