Class DevMeter

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

public class DevMeter extends Object implements IMeter
Since:
1.0 Mar 15, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • DevMeter

      public DevMeter()
  • Method Details

    • getHouse

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

      public House getDefaultHouse()
      Specified by:
      getDefaultHouse 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:
    • 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
    • main

      public static void main(String[] args)