public class MostRecentChecksumServiceImpl extends Object implements MostRecentChecksumService
| Modifier and Type | Field and Description |
|---|---|
protected BitstreamService |
bitstreamService |
protected ChecksumResultService |
checksumResultService |
protected MostRecentChecksumDAO |
mostRecentChecksumDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
MostRecentChecksumServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByBitstream(Context context,
Bitstream bitstream) |
List<MostRecentChecksum> |
findBitstreamResultTypeReport(Context context,
Date startDate,
Date endDate,
ChecksumResultCode resultCode)
Select the most recent bitstream for a given date range with the
specified status.
|
MostRecentChecksum |
findByBitstream(Context context,
Bitstream bitstream) |
List<MostRecentChecksum> |
findNotInHistory(Context context) |
List<MostRecentChecksum> |
findNotProcessedBitstreamsReport(Context context,
Date startDate,
Date endDate)
Find all bitstreams that were set to not be processed for the specified
date range.
|
MostRecentChecksum |
findOldestRecord(Context context)
Get the oldest most recent checksum record.
|
MostRecentChecksum |
findOldestRecord(Context context,
Date lessThanDate)
Returns the oldest bitstream that in the set of bitstreams that are less
than the specified date.
|
MostRecentChecksum |
getNonPersistedObject() |
void |
update(Context context,
MostRecentChecksum mostRecentChecksum) |
void |
updateMissingBitstreams(Context context)
Queries the bitstream table for bitstream IDs that are not yet in the
most_recent_checksum table, and inserts them into the
most_recent_checksum and checksum_history tables.
|
@Autowired(required=true) protected MostRecentChecksumDAO mostRecentChecksumDAO
@Autowired(required=true) protected ChecksumResultService checksumResultService
@Autowired(required=true) protected BitstreamService bitstreamService
public MostRecentChecksum getNonPersistedObject()
getNonPersistedObject in interface MostRecentChecksumServicepublic MostRecentChecksum findByBitstream(Context context, Bitstream bitstream) throws SQLException
findByBitstream in interface MostRecentChecksumServiceSQLExceptionpublic List<MostRecentChecksum> findNotProcessedBitstreamsReport(Context context, Date startDate, Date endDate) throws SQLException
findNotProcessedBitstreamsReport in interface MostRecentChecksumServicecontext - ContextstartDate - the start of the date rangeendDate - the end of the date rangeSQLException - if database errorpublic List<MostRecentChecksum> findBitstreamResultTypeReport(Context context, Date startDate, Date endDate, ChecksumResultCode resultCode) throws SQLException
findBitstreamResultTypeReport in interface MostRecentChecksumServicecontext - ContextstartDate - the start date rangeendDate - the end date range.resultCode - the result codeSQLException - if database errorpublic void updateMissingBitstreams(Context context) throws SQLException
updateMissingBitstreams in interface MostRecentChecksumServicecontext - ContextSQLException - if database errorpublic void deleteByBitstream(Context context, Bitstream bitstream) throws SQLException
deleteByBitstream in interface MostRecentChecksumServiceSQLExceptionpublic MostRecentChecksum findOldestRecord(Context context) throws SQLException
findOldestRecord in interface MostRecentChecksumServicecontext - COntextSQLException - if database errorpublic MostRecentChecksum findOldestRecord(Context context, Date lessThanDate) throws SQLException
findOldestRecord in interface MostRecentChecksumServicecontext - contextlessThanDate - dateSQLException - if database errorpublic List<MostRecentChecksum> findNotInHistory(Context context) throws SQLException
findNotInHistory in interface MostRecentChecksumServiceSQLExceptionpublic void update(Context context, MostRecentChecksum mostRecentChecksum) throws SQLException
update in interface MostRecentChecksumServiceSQLExceptionCopyright © 2022 LYRASIS. All rights reserved.