ch.hortis.sonar.service
Class MeasuresDao

java.lang.Object
  extended by ch.hortis.sonar.service.MeasuresDao

public class MeasuresDao
extends java.lang.Object


Constructor Summary
MeasuresDao(DatabaseManager databaseManager)
           
 
Method Summary
 void disableAutomaticMetrics()
           
 void disabledMetrics(java.util.Collection<Metric> metrics)
           
 java.util.List<Snapshot> getChildSnapshots(Snapshot snapshot, boolean includeSubmodules)
           
 java.util.Collection<Metric> getEnabledMetrics()
           
 java.util.List<Measure> getMeasures(java.lang.Integer snapshotId)
           
 Metric getMetric(Metric metric)
           
 Metric getMetric(java.lang.String metricName)
           
 java.util.Collection<Metric> getMetrics()
           
 Snapshot getSnapshot(int snapshotId)
           
 java.lang.String getSnapshotProjectName(int snapshotId)
           
 java.util.Collection<Metric> getUserDefinedMetrics()
           
 void persistMetric(Metric metric)
           
 void registerMetrics(java.util.Collection<Metric> metrics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasuresDao

public MeasuresDao(DatabaseManager databaseManager)
Method Detail

getMetric

public Metric getMetric(Metric metric)

getMetric

public Metric getMetric(java.lang.String metricName)

getMetrics

public java.util.Collection<Metric> getMetrics()

getEnabledMetrics

public java.util.Collection<Metric> getEnabledMetrics()

getUserDefinedMetrics

public java.util.Collection<Metric> getUserDefinedMetrics()

disableAutomaticMetrics

public void disableAutomaticMetrics()

registerMetrics

public void registerMetrics(java.util.Collection<Metric> metrics)

persistMetric

public void persistMetric(Metric metric)

disabledMetrics

public void disabledMetrics(java.util.Collection<Metric> metrics)

getMeasures

public java.util.List<Measure> getMeasures(java.lang.Integer snapshotId)

getSnapshot

public Snapshot getSnapshot(int snapshotId)

getSnapshotProjectName

public java.lang.String getSnapshotProjectName(int snapshotId)

getChildSnapshots

public java.util.List<Snapshot> getChildSnapshots(Snapshot snapshot,
                                                  boolean includeSubmodules)


Copyright © 2008 SonarSource SA. All Rights Reserved.