Package org.duracloud.mill.bitlog.jpa
Class JpaBitLogStore
- java.lang.Object
-
- org.duracloud.mill.bitlog.jpa.JpaBitLogStore
-
- All Implemented Interfaces:
BitLogStore
public class JpaBitLogStore extends Object implements BitLogStore
- Author:
- Daniel Bernstein Date: Oct 17, 2014
-
-
Constructor Summary
Constructors Constructor Description JpaBitLogStore(JpaBitLogItemRepo bitLogItemRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.duracloud.mill.db.model.BitIntegrityReportaddReport(String account, String storeId, String spaceId, String reportSpaceId, String reportContentId, org.duracloud.reportdata.bitintegrity.BitIntegrityReportResult result, Date completionDate)voiddelete(String account, String storeId, String spaceId)Iterator<BitLogItem>getBitLogItems(String account, String storeId, String spaceId)Returns a iterator of BitLogItems in chronological order.BitLogItemwrite(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 Detail
-
JpaBitLogStore
public JpaBitLogStore(JpaBitLogItemRepo bitLogItemRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo)
-
-
Method Detail
-
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 ItemWriteFailedExceptionDescription 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
public Iterator<BitLogItem> getBitLogItems(String account, String storeId, String spaceId)
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:
-
-