Class HibMeter

java.lang.Object
be.gaudry.dao.brolmeter.hibernate.HibMeter
All Implemented Interfaces:
IMeter

public class HibMeter extends Object implements IMeter
Since:
1.0 Sep 17, 2010
Author:
Steph GAUDRY
  • Constructor Details

    • HibMeter

      public HibMeter()
  • Method Details

    • getDefaultHouse

      public House getDefaultHouse()
      Specified by:
      getDefaultHouse in interface IMeter
    • getHouse

      public House getHouse(int id)
      Specified by:
      getHouse in interface IMeter
    • loadMeter

      public Meter loadMeter(int meterId)
      Description copied from interface: IMeter
      Loads measures for a given meter identifier and a given year.
      Specified by:
      loadMeter in interface IMeter
      Returns:
    • loadMeter

      public Meter loadMeter(int meterId, int year)
      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.
      Specified by:
      loadMeter in interface IMeter
      year - the requested year, or -1 to return all measures.
      Returns:
    • saveMeasure

      public int saveMeasure(Measure measure)
      Specified by:
      saveMeasure in interface IMeter
      Parameters:
      measure - to save
      Returns:
      measure id
    • saveMeter

      public int saveMeter(Meter meter)
      Specified by:
      saveMeter in interface IMeter
      Parameters:
      meter - Meter to save
      Returns:
      meter id