org.sonar.api.database.model
Class AsyncMeasureSnapshot
java.lang.Object
org.sonar.api.database.BaseIdentifiable
org.sonar.api.database.model.AsyncMeasureSnapshot
public class AsyncMeasureSnapshot
- extends BaseIdentifiable
Class to map an aysync measure with hibernate model
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 attachedmeasureDate
- the date of the measuresnapshotDate
- the snapshot datemetricId
- the metric the measure is attached toprojectId
- the id of the project
AsyncMeasureSnapshot
public AsyncMeasureSnapshot()
- Default constructor
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-2010 SonarSource. All Rights Reserved.