org.sonar.plugins.dbcleaner.runner
Class DefaultPurgeContext

java.lang.Object
  extended by org.sonar.plugins.dbcleaner.runner.DefaultPurgeContext
All Implemented Interfaces:
PurgeContext

public final class DefaultPurgeContext
extends Object
implements PurgeContext, PurgeContext


Constructor Summary
DefaultPurgeContext(Project project, Snapshot currentSnapshot)
           
DefaultPurgeContext(Project project, Snapshot currentSnapshot, Snapshot previousSnapshot)
           
 
Method Summary
 Integer getLastSnapshotId()
          Deprecated.  
 Integer getPreviousSnapshotId()
          Can be null
 Project getProject()
           
 Integer getSnapshotId()
           
 DefaultPurgeContext setLastSnapshotId(Integer previousSid)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPurgeContext

public DefaultPurgeContext(Project project,
                           Snapshot currentSnapshot)

DefaultPurgeContext

public DefaultPurgeContext(Project project,
                           Snapshot currentSnapshot,
                           Snapshot previousSnapshot)
Method Detail

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-2011 SonarSource. All Rights Reserved.