Class DevVehicleMeter

java.lang.Object
be.gaudry.dao.brolmeter.dev.DevVehicleMeter
All Implemented Interfaces:
IMeter

public class DevVehicleMeter extends Object implements IMeter
Since:
1.0 Sep 23, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • DevVehicleMeter

      public DevVehicleMeter()
  • Method Details

    • 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:
    • getHouse

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

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

      public int saveMeter(Meter meter) throws javax.transaction.NotSupportedException
      do nothing for dev
      Specified by:
      saveMeter in interface IMeter
      Parameters:
      meter - Meter to save
      Returns:
      meter id
      Throws:
      javax.transaction.NotSupportedException
    • saveMeasure

      public int saveMeasure(Measure measure) throws javax.transaction.NotSupportedException
      do nothing for dev
      Specified by:
      saveMeasure in interface IMeter
      Parameters:
      measure - to save
      Returns:
      measure id
      Throws:
      javax.transaction.NotSupportedException