|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.database.BaseIdentifiable org.sonar.api.database.model.Snapshot
public class Snapshot
A class to map a snapshot with its hibernate model
Field Summary | |
---|---|
static String |
STATUS_PROCESSED
This status is set on the snapshot at the end of the batch |
static String |
STATUS_UNPROCESSED
This status is set on the snapshot at the beginning of the batch |
Constructor Summary | |
---|---|
Snapshot()
|
|
Snapshot(ResourceModel resource,
boolean last,
String status,
Date date)
|
|
Snapshot(ResourceModel resource,
Snapshot parent)
|
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 |
Field Detail |
---|
public static final String STATUS_UNPROCESSED
public static final String STATUS_PROCESSED
Constructor Detail |
---|
public Snapshot()
public Snapshot(ResourceModel resource, Snapshot parent)
public Snapshot(ResourceModel resource, boolean last, String status, Date date)
Method Detail |
---|
public Snapshot save(DatabaseSession session)
public Date getBuildDate()
public Snapshot setBuildDate(Date d)
public Date getCreatedAt()
public Snapshot setCreatedAt(Date createdAt)
public Integer getResourceId()
public Snapshot setResourceId(Integer resourceId)
public final Snapshot setResource(ResourceModel resource)
public String getVersion()
public Snapshot setVersion(String version)
public Integer getParentId()
public Snapshot setParentId(Integer i)
public Boolean getLast()
public Snapshot setLast(Boolean last)
public String getStatus()
public Snapshot setStatus(String status)
public Integer getPurgeStatus()
public Snapshot setPurgeStatus(Integer i)
public String getScope()
public Snapshot setScope(String scope)
public String getQualifier()
public Snapshot setQualifier(String qualifier)
public Integer getRootId()
public Snapshot setRootId(Integer i)
public String getPath()
public Snapshot setPath(String path)
public Integer getDepth()
public Integer getRootProjectId()
public Snapshot setRootProjectId(Integer rootProjectId)
public void setDepth(Integer depth)
IllegalArgumentException
- when depth is negativepublic String getPeriod1Mode()
public Snapshot setPeriod1Mode(String s)
public String getPeriod2Mode()
public Snapshot setPeriod2Mode(String s)
public String getPeriod3Mode()
public Snapshot setPeriod3Mode(String s)
public String getPeriod4Mode()
public Snapshot setPeriod4Mode(String s)
public String getPeriod5Mode()
public Snapshot setPeriod5Mode(String s)
public String getPeriod1Param()
public Snapshot setPeriod1Param(String s)
public String getPeriod2Param()
public Snapshot setPeriod2Param(String s)
public String getPeriod3Param()
public Snapshot setPeriod3Param(String s)
public String getPeriod4Param()
public Snapshot setPeriod4Param(String s)
public String getPeriod5Param()
public Snapshot setPeriod5Param(String s)
public Date getPeriod1Date()
public Snapshot setPeriod1Date(Date period1Date)
public Date getPeriod2Date()
public Snapshot setPeriod2Date(Date period2Date)
public Date getPeriod3Date()
public Snapshot setPeriod3Date(Date period3Date)
public Date getPeriod4Date()
public Snapshot setPeriod4Date(Date period4Date)
public Date getPeriod5Date()
public Snapshot setPeriod5Date(Date period5Date)
public Snapshot setPeriodMode(int periodIndex, String s)
public String getPeriodMode(int index)
public Snapshot setPeriodModeParameter(int periodIndex, String s)
public String getPeriodModeParameter(int periodIndex)
public Snapshot setPeriodDate(int periodIndex, Date d)
public Date getPeriodDate(int periodIndex)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |