org.sonar.plugins.dbcleaner.api
Class Purge

java.lang.Object
  extended by org.sonar.plugins.dbcleaner.api.Purge
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension
Direct Known Subclasses:
PeriodPurge, PurgeDeletedResources, PurgeDependencies, PurgeDeprecatedLast, PurgeDisabledResources, PurgeEntities, PurgeEventOrphans, PurgeOrphanResources, PurgeOrphanReviews, PurgePropertyOrphans, PurgeResourceRoles, PurgeRuleMeasures, PurgeUnprocessed

public abstract class Purge
extends Object
implements BatchExtension

Implement this component in order to define your own rules to cleanup database.

Since:
2.5

Constructor Summary
protected Purge(DatabaseSession session)
           
 
Method Summary
protected  DatabaseSession getSession()
           
abstract  void purge(PurgeContext context)
          Snapshots include the current snapshot (flagged as last) and optionally the penultimate one.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Purge

protected Purge(DatabaseSession session)
Method Detail

getSession

protected final DatabaseSession getSession()

purge

public abstract void purge(PurgeContext context)
Snapshots include the current snapshot (flagged as last) and optionally the penultimate one.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.