org.sonar.jpa.dao
Class AsyncMeasuresDao

java.lang.Object
  extended by org.sonar.jpa.dao.BaseDao
      extended by org.sonar.jpa.dao.AsyncMeasuresDao

public class AsyncMeasuresDao
extends BaseDao


Constructor Summary
AsyncMeasuresDao(DatabaseSession session)
           
 
Method Summary
 AsyncMeasureSnapshot createAsyncMeasureSnapshot(Long asyncMeasureId, Integer snapshotId, Date AsyncMeasureDate, Date snapshotDate, Integer metricId, Integer projectId)
           
 void deleteAsyncMeasure(MeasureModel asyncMeasure)
           
 void deleteAsyncMeasureSnapshots(Long asyncMeasureId)
           
 MeasureModel getAsyncMeasure(Long asyncMeasureId)
           
 List<AsyncMeasureSnapshot> getAsyncMeasureSnapshotsFromSnapshotId(Integer snapshotId, List<Integer> metricIdsToExclude)
           
 AsyncMeasureSnapshot getLastAsyncMeasureSnapshot(Integer projetcId, Integer metricId, Date date)
           
 AsyncMeasureSnapshot getNextAsyncMeasureSnapshot(Integer projetcId, Integer metricId, Date date)
           
 List<AsyncMeasureSnapshot> getNextAsyncMeasureSnapshotsUntilDate(MeasureModel asyncMeasure, Date endDate)
           
 List<Snapshot> getNextSnapshotsUntilDate(MeasureModel measure, Date date)
           
 List<AsyncMeasureSnapshot> getPreviousAsyncMeasureSnapshots(Integer projectId, Date beginDate, Date endDate)
           
 Snapshot getPreviousSnapshot(Snapshot s)
           
 void removeSnapshotFromAsyncMeasureSnapshot(AsyncMeasureSnapshot asyncMeasureSnapshot)
           
 void updateAsyncMeasureSnapshot(AsyncMeasureSnapshot asyncMeasureSnapshot, Snapshot snapshot)
           
 
Methods inherited from class org.sonar.jpa.dao.BaseDao
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncMeasuresDao

public AsyncMeasuresDao(DatabaseSession session)
Method Detail

getAsyncMeasure

public MeasureModel getAsyncMeasure(Long asyncMeasureId)

deleteAsyncMeasure

public void deleteAsyncMeasure(MeasureModel asyncMeasure)

getPreviousSnapshot

public Snapshot getPreviousSnapshot(Snapshot s)

getNextSnapshotsUntilDate

public List<Snapshot> getNextSnapshotsUntilDate(MeasureModel measure,
                                                Date date)

createAsyncMeasureSnapshot

public AsyncMeasureSnapshot createAsyncMeasureSnapshot(Long asyncMeasureId,
                                                       Integer snapshotId,
                                                       Date AsyncMeasureDate,
                                                       Date snapshotDate,
                                                       Integer metricId,
                                                       Integer projectId)

updateAsyncMeasureSnapshot

public void updateAsyncMeasureSnapshot(AsyncMeasureSnapshot asyncMeasureSnapshot,
                                       Snapshot snapshot)

removeSnapshotFromAsyncMeasureSnapshot

public void removeSnapshotFromAsyncMeasureSnapshot(AsyncMeasureSnapshot asyncMeasureSnapshot)

getNextAsyncMeasureSnapshot

public AsyncMeasureSnapshot getNextAsyncMeasureSnapshot(Integer projetcId,
                                                        Integer metricId,
                                                        Date date)

getNextAsyncMeasureSnapshotsUntilDate

public List<AsyncMeasureSnapshot> getNextAsyncMeasureSnapshotsUntilDate(MeasureModel asyncMeasure,
                                                                        Date endDate)

getPreviousAsyncMeasureSnapshots

public List<AsyncMeasureSnapshot> getPreviousAsyncMeasureSnapshots(Integer projectId,
                                                                   Date beginDate,
                                                                   Date endDate)

getAsyncMeasureSnapshotsFromSnapshotId

public List<AsyncMeasureSnapshot> getAsyncMeasureSnapshotsFromSnapshotId(Integer snapshotId,
                                                                         List<Integer> metricIdsToExclude)

getLastAsyncMeasureSnapshot

public AsyncMeasureSnapshot getLastAsyncMeasureSnapshot(Integer projetcId,
                                                        Integer metricId,
                                                        Date date)

deleteAsyncMeasureSnapshots

public void deleteAsyncMeasureSnapshots(Long asyncMeasureId)


Copyright © 2009-2011 SonarSource. All Rights Reserved.