org.sonar.api.database.model
Class AsyncMeasureSnapshot

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.database.model.AsyncMeasureSnapshot

public class AsyncMeasureSnapshot
extends BaseIdentifiable

Class to map an aysync measure with hibernate model


Constructor Summary
AsyncMeasureSnapshot()
          Default constructor
AsyncMeasureSnapshot(Long measureId, Integer snapshotId, Date measureDate, Date snapshotDate, Integer metricId, Integer projectId)
          This is the constructor to use
 
Method Summary
 boolean equals(Object obj)
           
 Date getMeasureDate()
           
 Long getMeasureId()
           
 Integer getMetricId()
           
 Integer getProjectId()
           
 Date getSnapshotDate()
           
 Integer getSnapshotId()
           
 int hashCode()
           
 void setMeasure(MeasureModel measure)
           
 void setMeasureDate(Date measureDate)
           
 void setMeasureId(Long measureId)
           
 void setMetricId(Integer metricId)
           
 void setProjectId(Integer projectId)
           
 void setSnapshotDate(Date snapshotDate)
           
 void setSnapshotId(Integer snapshotId)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncMeasureSnapshot

public AsyncMeasureSnapshot(Long measureId,
                            Integer snapshotId,
                            Date measureDate,
                            Date snapshotDate,
                            Integer metricId,
                            Integer projectId)
This is the constructor to use

Parameters:
measureId -
snapshotId - the snapshot id to which the measure is attached
measureDate - the date of the measure
snapshotDate - the snapshot date
metricId - the metric the measure is attached to
projectId - the id of the project

AsyncMeasureSnapshot

public AsyncMeasureSnapshot()
Default constructor

Method Detail

getMeasureId

public Long getMeasureId()

setMeasureId

public void setMeasureId(Long measureId)

getSnapshotId

public Integer getSnapshotId()

setSnapshotId

public void setSnapshotId(Integer snapshotId)

getMeasureDate

public Date getMeasureDate()

setMeasureDate

public void setMeasureDate(Date measureDate)

getSnapshotDate

public Date getSnapshotDate()

setSnapshotDate

public void setSnapshotDate(Date snapshotDate)

getMetricId

public Integer getMetricId()

setMetricId

public void setMetricId(Integer metricId)

getProjectId

public Integer getProjectId()

setProjectId

public void setProjectId(Integer projectId)

setMeasure

public void setMeasure(MeasureModel measure)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 SonarSource. All Rights Reserved.