org.sonar.plugins.dbcleaner.purges
Class PurgeOrphanReviews

java.lang.Object
  extended by org.sonar.plugins.dbcleaner.api.Purge
      extended by org.sonar.plugins.dbcleaner.purges.PurgeOrphanReviews
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension

public final class PurgeOrphanReviews
extends Purge

Purge Review that are attached to projects that have been deleted.

Since:
2.8

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

Constructor Detail

PurgeOrphanReviews

public PurgeOrphanReviews(DatabaseSession session)
Method Detail

purge

public void purge(PurgeContext context)
Description copied from class: Purge
Snapshots include the current snapshot (flagged as last) and optionally the penultimate one.

Specified by:
purge in class Purge

getDeleteReviewsSqlRequest

protected String getDeleteReviewsSqlRequest()

getDeleteReviewCommentsSqlRequest

protected String getDeleteReviewCommentsSqlRequest()


Copyright © 2009-2012 SonarSource. All Rights Reserved.