org.dspace.checker
Class ReporterDAO

java.lang.Object
  extended by org.dspace.checker.DAOSupport
      extended by org.dspace.checker.ReporterDAO

public class ReporterDAO
extends DAOSupport

This class will report information on the checksum checker process.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Field Summary
static String DATE_RANGE_BITSTREAMS
          Select the most recent bitstream information for a given date range with the specified status.
static String DATE_RANGE_NOT_PROCESSED_BITSTREAMS
          Find all bitstreams that were set to not be processed for the specified date range.
static String DATE_RANGE_NOT_PROCESSED_BITSTREAMS_ORACLE
           
static String FIND_UNKNOWN_BITSTREAMS
          Find all bitstreams that the checksum checker is unaware of
 
Constructor Summary
ReporterDAO()
          Default constructor
 
Method Summary
 List getBitstreamResultTypeReport(Date startDate, Date endDate, String resultCode)
          Select the most recent bitstream for a given date range with the specified status.
 List getNotProcessedBitstreamsReport(Date startDate, Date endDate)
          Find all bitstreams that were set to not be processed for the specified date range.
 List getUnknownBitstreams()
          Find all bitstreams that the checksum checker is currently not aware of
 
Methods inherited from class org.dspace.checker.DAOSupport
cleanup, cleanup, cleanup, cleanup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_RANGE_BITSTREAMS

public static final String DATE_RANGE_BITSTREAMS
Select the most recent bitstream information for a given date range with the specified status. This select is from the checksum history and checksum results tables.

See Also:
Constant Field Values

DATE_RANGE_NOT_PROCESSED_BITSTREAMS

public static final String DATE_RANGE_NOT_PROCESSED_BITSTREAMS
Find all bitstreams that were set to not be processed for the specified date range.

See Also:
Constant Field Values

DATE_RANGE_NOT_PROCESSED_BITSTREAMS_ORACLE

public static final String DATE_RANGE_NOT_PROCESSED_BITSTREAMS_ORACLE
See Also:
Constant Field Values

FIND_UNKNOWN_BITSTREAMS

public static final String FIND_UNKNOWN_BITSTREAMS
Find all bitstreams that the checksum checker is unaware of

See Also:
Constant Field Values
Constructor Detail

ReporterDAO

public ReporterDAO()
Default constructor

Method Detail

getBitstreamResultTypeReport

public List getBitstreamResultTypeReport(Date startDate,
                                         Date endDate,
                                         String resultCode)
Select the most recent bitstream for a given date range with the specified status.

Parameters:
startDate - the start date range
endDate - the end date range.
resultCode - the result code
Returns:
a list of BitstreamHistoryInfo objects

getNotProcessedBitstreamsReport

public List getNotProcessedBitstreamsReport(Date startDate,
                                            Date endDate)
Find all bitstreams that were set to not be processed for the specified date range.

Parameters:
startDate - the start of the date range
endDate - the end of the date range
Returns:
a list of BitstreamHistoryInfo objects

getUnknownBitstreams

public List getUnknownBitstreams()
Find all bitstreams that the checksum checker is currently not aware of

Returns:
a List of DSpaceBitstreamInfo objects


Copyright © 2010 DuraSpace. All Rights Reserved.