|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.checker.DAOSupport
org.dspace.checker.ChecksumHistoryDAO
public class ChecksumHistoryDAO
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.
| Constructor Summary | |
|---|---|
ChecksumHistoryDAO()
|
|
| Method Summary | |
|---|---|
protected int |
deleteHistoryByDateAndCode(Date retentionDate,
String result,
Connection conn)
Delete the history records from the database. |
protected int |
deleteHistoryForBitstreamInfo(int id,
Connection conn)
Deletes the bitstream from the bitstream_history table if it exist. |
void |
insertHistory(BitstreamInfo info)
Inserts results of checksum check into checksum_history table for a given bitstream. |
int |
prune(Map<String,Long> interests)
Prune the history records from the database. |
protected void |
updateMissingBitstreams(Connection conn)
|
| 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 |
| Constructor Detail |
|---|
public ChecksumHistoryDAO()
| Method Detail |
|---|
public void insertHistory(BitstreamInfo info)
info - the BitstreamInfo representing a checksum check.
IllegalArgumentException - if the BitstreamInfo is null.
protected int deleteHistoryForBitstreamInfo(int id,
Connection conn)
id - the bitstream id.
protected void updateMissingBitstreams(Connection conn)
throws SQLException
conn -
SQLException
protected int deleteHistoryByDateAndCode(Date retentionDate,
String result,
Connection conn)
throws SQLException
retentionDate - any records older than this data are deleted.result - result code records must have for them to be deleted.conn - database connection.
SQLException - if database error occurs.public int prune(Map<String,Long> interests)
interests - set of results and the duration of time before they are
removed from the database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||