Class HibMeter
java.lang.Object
be.gaudry.dao.brolmeter.hibernate.HibMeter
- All Implemented Interfaces:
IMeter
- Since:
- 1.0 Sep 17, 2010
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHouse(int id)
loadMeter(int meterId)
Loads measures for a given meter identifier and a given year.loadMeter(int meterId, int year)
Loads measures for a given meter identifier and a given year.int
saveMeasure(Measure measure)
int
-
Constructor Details
-
HibMeter
public HibMeter()
-
-
Method Details
-
getDefaultHouse
- Specified by:
getDefaultHouse
in interfaceIMeter
-
getHouse
-
loadMeter
Description copied from interface:IMeter
Loads measures for a given meter identifier and a given year. -
loadMeter
Description copied from interface:IMeter
Loads measures for a given meter identifier and a given year.
Only measures matching the given year are loaded, and the first measure of the following month. The first measure of the following month is needed to compute consumption of the last month of the given year. -
saveMeasure
- Specified by:
saveMeasure
in interfaceIMeter
- Parameters:
measure
- to save- Returns:
- measure id
-
saveMeter
-