| java.lang.Object org.dspace.checker.DAOSupport org.dspace.checker.ChecksumHistoryDAO
ChecksumHistoryDAO | public class ChecksumHistoryDAO extends DAOSupport (Code) | |
This is the data access for the checksum history information. All
update,insert and delete database operations should go through this class for
checksum history operations.
author: Jim Downing author: Grace Carpenter author: Nathan Sarr |
Method Summary | |
protected int | deleteHistoryByDateAndCode(Date retentionDate, String result, Connection conn) Delete the history records from the database.
Parameters: retentionDate - any records older than this data are deleted. Parameters: result - result code records must have for them to be deleted. Parameters: conn - database connection. | protected int | deleteHistoryForBitstreamInfo(int id, Connection conn) Deletes the bitstream from the bitstream_history table if it exist.
Parameters: id - the bitstream id. | public void | insertHistory(BitstreamInfo info) Inserts results of checksum check into checksum_history table for a given
bitstream. | public int | prune(Map interests) Prune the history records from the database. | protected void | updateMissingBitstreams(Connection conn) |
deleteHistoryByDateAndCode | protected int deleteHistoryByDateAndCode(Date retentionDate, String result, Connection conn) throws SQLException(Code) | | Delete the history records from the database.
Parameters: retentionDate - any records older than this data are deleted. Parameters: result - result code records must have for them to be deleted. Parameters: conn - database connection. number of records deleted. throws: SQLException - if database error occurs. |
deleteHistoryForBitstreamInfo | protected int deleteHistoryForBitstreamInfo(int id, Connection conn)(Code) | | Deletes the bitstream from the bitstream_history table if it exist.
Parameters: id - the bitstream id. number of records deleted |
insertHistory | public void insertHistory(BitstreamInfo info)(Code) | | Inserts results of checksum check into checksum_history table for a given
bitstream.
Parameters: info - the BitstreamInfo representing a checksum check. throws: IllegalArgumentException - if the BitstreamInfo is null. |
prune | public int prune(Map interests)(Code) | | Prune the history records from the database.
Parameters: interests - set of results and the duration of time before they areremoved from the database number of bitstreams deleted |
|
|