Package org.duracloud.mill.bitlog.jpa
Class JpaBitLogStore
java.lang.Object
org.duracloud.mill.bitlog.jpa.JpaBitLogStore
- All Implemented Interfaces:
BitLogStore
- Author:
- Daniel Bernstein Date: Oct 17, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionJpaBitLogStore(JpaBitLogItemRepo bitLogItemRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo) -
Method Summary
Modifier and TypeMethodDescriptionorg.duracloud.mill.db.model.BitIntegrityReportaddReport(String account, String storeId, String spaceId, String reportSpaceId, String reportContentId, org.duracloud.reportdata.bitintegrity.BitIntegrityReportResult result, Date completionDate) voidgetBitLogItems(String account, String storeId, String spaceId) Returns a iterator of BitLogItems in chronological order.write(String accountId, String storeId, String spaceId, String contentId, Date timestamp, org.duracloud.storage.domain.StorageProviderType storeType, BitIntegrityResult result, String contentCheckSum, String storageProviderChecksum, String manifestChecksum, String details) Creates a new BitLogItem and writes it to the store.
-
Constructor Details
-
JpaBitLogStore
public JpaBitLogStore(JpaBitLogItemRepo bitLogItemRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo)
-
-
Method Details
-
write
@Transactional("millJpaRepoTransactionManager") public BitLogItem write(String accountId, String storeId, String spaceId, String contentId, Date timestamp, org.duracloud.storage.domain.StorageProviderType storeType, BitIntegrityResult result, String contentCheckSum, String storageProviderChecksum, String manifestChecksum, String details) throws ItemWriteFailedException Description copied from interface:BitLogStoreCreates a new BitLogItem and writes it to the store.- Specified by:
writein interfaceBitLogStore- Returns:
- the newly created BitLogItem
- Throws:
ItemWriteFailedException
-
getBitLogItems
Description copied from interface:BitLogStoreReturns a iterator of BitLogItems in chronological order. If no matches are found, the iterator's hasNext() method will return false.- Specified by:
getBitLogItemsin interfaceBitLogStore- Returns:
-
delete
@Transactional("millJpaRepoTransactionManager") public void delete(String account, String storeId, String spaceId) - Specified by:
deletein interfaceBitLogStore
-
addReport
@Transactional("millJpaRepoTransactionManager") public org.duracloud.mill.db.model.BitIntegrityReport addReport(String account, String storeId, String spaceId, String reportSpaceId, String reportContentId, org.duracloud.reportdata.bitintegrity.BitIntegrityReportResult result, Date completionDate) - Specified by:
addReportin interfaceBitLogStore- Returns:
-