dk.netarkivet.wayback.indexer
Class ArchiveFileDAO

java.lang.Object
  extended by dk.netarkivet.wayback.indexer.GenericHibernateDAO<ArchiveFile,java.lang.String>
      extended by dk.netarkivet.wayback.indexer.ArchiveFileDAO
All Implemented Interfaces:
GenericDAO<ArchiveFile,java.lang.String>

public class ArchiveFileDAO
extends GenericHibernateDAO<ArchiveFile,java.lang.String>

Data Access Object for ArchiveFile instances.


Constructor Summary
ArchiveFileDAO()
           
 
Method Summary
 boolean exists(java.lang.String filename)
          Returns true iff this file is found in the object store.
 java.util.List<ArchiveFile> getFilesAwaitingIndexing()
          Returns a list of all files awaiting indexing, ie all files not yet indexed and which have not failed indexing more than the maximum number of allowed times.
 
Methods inherited from class dk.netarkivet.wayback.indexer.GenericHibernateDAO
create, delete, findByCriteria, getSession, read, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveFileDAO

public ArchiveFileDAO()
Method Detail

exists

public boolean exists(java.lang.String filename)
Returns true iff this file is found in the object store.

Parameters:
filename - the name of the file.
Returns:
whether or not the file is already known.

getFilesAwaitingIndexing

public java.util.List<ArchiveFile> getFilesAwaitingIndexing()
Returns a list of all files awaiting indexing, ie all files not yet indexed and which have not failed indexing more than the maximum number of allowed times. The list is ordered such that previously failed files are returned last.

Returns:
the list of files awaiting indexing.