public interface ChecksumHistoryService
| Modifier and Type | Method and Description |
|---|---|
void |
addHistory(Context context,
MostRecentChecksum mostRecentChecksum) |
void |
deleteByBitstream(Context context,
Bitstream bitstream) |
int |
deleteByDateAndCode(Context context,
Date retentionDate,
ChecksumResultCode result) |
int |
prune(Context context,
Map<ChecksumResultCode,Long> interests)
Prune the history records from the database.
|
void |
updateMissingBitstreams(Context context) |
void updateMissingBitstreams(Context context) throws SQLException
SQLExceptionvoid addHistory(Context context, MostRecentChecksum mostRecentChecksum) throws SQLException
SQLExceptionint deleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode result) throws SQLException
SQLExceptionvoid deleteByBitstream(Context context, Bitstream bitstream) throws SQLException
SQLExceptionint prune(Context context, Map<ChecksumResultCode,Long> interests) throws SQLException
context - contextinterests - set of results and the duration of time before they are
removed from the databaseSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.