org.sonar.plugins.dbcleaner.runner
Class DefaultPurgeContext
java.lang.Object
org.sonar.plugins.dbcleaner.runner.DefaultPurgeContext
- All Implemented Interfaces:
- PurgeContext
public final class DefaultPurgeContext
- extends Object
- implements PurgeContext, PurgeContext
DefaultPurgeContext
public DefaultPurgeContext(Project project,
Snapshot currentSnapshot)
DefaultPurgeContext
public DefaultPurgeContext(Project project,
Snapshot currentSnapshot,
Snapshot previousSnapshot)
setLastSnapshotId
public DefaultPurgeContext setLastSnapshotId(Integer previousSid)
getSnapshotId
public Integer getSnapshotId()
- Specified by:
getSnapshotId
in interface PurgeContext
- Returns:
- the snapshot id of the current project
getPreviousSnapshotId
public Integer getPreviousSnapshotId()
- Description copied from interface:
PurgeContext
- Can be null
- Specified by:
getPreviousSnapshotId
in interface PurgeContext
getProject
public Project getProject()
- Specified by:
getProject
in interface PurgeContext
getLastSnapshotId
@Deprecated
public Integer getLastSnapshotId()
- Deprecated.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.