org.musicontroller.repair
Class ConsistencyChecker

java.lang.Object
  extended by org.musicontroller.repair.ConsistencyChecker

public class ConsistencyChecker
extends java.lang.Object


Constructor Summary
ConsistencyChecker()
           
 
Method Summary
static DenseSet checkLinks(Dao dao)
          Checks whether all Songs in the Dao have a corresponding working link on the filesystem.
static DenseSet getBrokenSongIDs()
          This getter only returns correct data after checkLinks(Dao dao) has been run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsistencyChecker

public ConsistencyChecker()
Method Detail

checkLinks

public static DenseSet checkLinks(Dao dao)
Checks whether all Songs in the Dao have a corresponding working link on the filesystem.

Parameters:
dao -
Returns:
A DenseSet, containing all song-ids in error.

getBrokenSongIDs

public static DenseSet getBrokenSongIDs()
This getter only returns correct data after checkLinks(Dao dao) has been run.

Returns:
All song-ids that have no correct filesystem-link.


Copyright © 2010 A.J.V.. All Rights Reserved.