org.sonar.core.purge
Class AbstractPurge

java.lang.Object
  extended by org.sonar.core.purge.AbstractPurge
All Implemented Interfaces:
Purge, BatchComponent, BatchExtension, Extension
Direct Known Subclasses:
AbstractPurge

Deprecated. since 2.5. The DBCleaner plugin implements all required purge taks, but you can extend org.sonar.plugins.dbcleaner.api.Purge

@Deprecated
public abstract class AbstractPurge
extends Object
implements Purge


Constructor Summary
AbstractPurge(DatabaseSession session)
          Deprecated.  
 
Method Summary
protected  void deleteDependencies(List<Integer> snapshotIds)
          Deprecated.  
protected  void deleteMeasuresById(List<Integer> measureIds)
          Deprecated. Delete all measures, including MEASURE_DATA
protected  void deleteMeasuresBySnapshotId(List<Integer> snapshotIds)
          Deprecated. Delete all measures, including MEASURE_DATA
protected  void deleteSnapshotData(List<Integer> snapshotIds)
          Deprecated. Delete SNAPSHOTS and all dependent tables (MEASURES, ...)
protected  void deleteSnapshots(List<Integer> snapshotIds)
          Deprecated. Delete SNAPSHOTS table
protected  void deleteSources(List<Integer> snapshotIds)
          Deprecated. Delete SNAPSHOT_SOURCES table
protected  void deleteViolations(List<Integer> snapshotIds)
          Deprecated. Delete violations (RULE_FAILURES table)
protected  void executeQuery(List<Integer> ids, String hql)
          Deprecated.  
protected  DatabaseSession getSession()
          Deprecated.  
protected  List<Integer> selectIds(javax.persistence.Query query)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonar.api.batch.Purge
purge
 

Constructor Detail

AbstractPurge

public AbstractPurge(DatabaseSession session)
Deprecated. 
Method Detail

getSession

protected DatabaseSession getSession()
Deprecated. 

deleteSnapshotData

protected void deleteSnapshotData(List<Integer> snapshotIds)
Deprecated. 
Delete SNAPSHOTS and all dependent tables (MEASURES, ...)


deleteDependencies

protected void deleteDependencies(List<Integer> snapshotIds)
Deprecated. 

deleteMeasuresBySnapshotId

protected void deleteMeasuresBySnapshotId(List<Integer> snapshotIds)
Deprecated. 
Delete all measures, including MEASURE_DATA


deleteMeasuresById

protected void deleteMeasuresById(List<Integer> measureIds)
Deprecated. 
Delete all measures, including MEASURE_DATA


deleteSources

protected void deleteSources(List<Integer> snapshotIds)
Deprecated. 
Delete SNAPSHOT_SOURCES table


deleteViolations

protected void deleteViolations(List<Integer> snapshotIds)
Deprecated. 
Delete violations (RULE_FAILURES table)


deleteSnapshots

protected void deleteSnapshots(List<Integer> snapshotIds)
Deprecated. 
Delete SNAPSHOTS table


executeQuery

protected void executeQuery(List<Integer> ids,
                            String hql)
Deprecated. 

selectIds

protected List<Integer> selectIds(javax.persistence.Query query)
Deprecated. 


Copyright © 2009-2011 SonarSource. All Rights Reserved.