|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.AbstractPurge
public abstract class AbstractPurge
Constructor Summary | |
---|---|
AbstractPurge(DatabaseSession session)
|
Method Summary | |
---|---|
protected void |
deleteMeasuresById(List<Integer> measureIds)
Delete all measures, including MEASURE_DATA |
protected void |
deleteMeasuresBySnapshotId(List<Integer> snapshotIds)
Delete all measures, including MEASURE_DATA |
protected void |
deleteSnapshotData(List<Integer> snapshotIds)
Delete SNAPSHOTS and all dependent tables (MEASURES, ...) |
protected void |
deleteSnapshots(List<Integer> snapshotIds)
Delete SNAPSHOTS table |
protected void |
deleteSources(List<Integer> snapshotIds)
Delete SNAPSHOT_SOURCES table |
protected void |
deleteViolations(List<Integer> snapshotIds)
Delete violations (RULE_FAILURES table) |
protected void |
executeQuery(List<Integer> ids,
String hql)
Paginate execution of SQL requests to avoid exceeding size of rollback segment |
protected DatabaseSession |
getSession()
|
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 |
---|
public AbstractPurge(DatabaseSession session)
Method Detail |
---|
protected DatabaseSession getSession()
protected void deleteSnapshotData(List<Integer> snapshotIds)
protected void deleteMeasuresBySnapshotId(List<Integer> snapshotIds)
protected void deleteMeasuresById(List<Integer> measureIds)
protected void deleteSources(List<Integer> snapshotIds)
protected void deleteViolations(List<Integer> snapshotIds)
protected void deleteSnapshots(List<Integer> snapshotIds)
protected void executeQuery(List<Integer> ids, String hql)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |