public class ChecksumHistoryDAOImpl extends AbstractHibernateDAO<ChecksumHistory> implements 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.
| Modifier | Constructor and Description |
|---|---|
protected |
ChecksumHistoryDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByBitstream(Context context,
Bitstream bitstream)
Delete all ChecksumHistory rows for the given Bitstream.
|
int |
deleteByDateAndCode(Context context,
Date retentionDate,
ChecksumResultCode resultCode)
Delete all ChecksumHistory rows with retention date before the given and
the specified result code.
|
count, count, countLong, create, createCriteria, createCriteria, createQuery, delete, findAll, findByID, findByID, findMany, findMany, findUnique, getHibernateSession, iterate, list, list, save, singleResult, singleResult, uniqueResult, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, delete, findAll, findByID, findByID, findMany, findUnique, savepublic int deleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode resultCode) throws SQLException
ChecksumHistoryDAOdeleteByDateAndCode in interface ChecksumHistoryDAOretentionDate - row must be older than this to be deleted.resultCode - row must have this result to be deleted.SQLException - if database errorpublic void deleteByBitstream(Context context, Bitstream bitstream) throws SQLException
ChecksumHistoryDAOdeleteByBitstream in interface ChecksumHistoryDAOSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.