@Repository(value="restoreRepo") public interface RestoreRepo extends org.springframework.data.jpa.repository.JpaRepository<Restoration,Long>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByRestorationId(String restoreId)
Deletes the restore entity
|
List<Restoration> |
findByDestinationHost(String host)
Returns a list of restorations for a given destinantion host.
|
Restoration |
findByRestorationId(String restorationId) |
List<Restoration> |
findBySnapshotNameOrderByModifiedDesc(String name)
Returns a list of restorations based on the restoration's snapshot name property.
|
List<Restoration> |
findByStatus(org.duracloud.snapshot.dto.RestoreStatus status)
Returns a list of restorations based on the restoration's status
|
List<Restoration> |
findRunning() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllList<Restoration> findByDestinationHost(String host)
host - List<Restoration> findBySnapshotNameOrderByModifiedDesc(String name)
name - Restoration findByRestorationId(String restorationId)
restorationId - List<Restoration> findByStatus(org.duracloud.snapshot.dto.RestoreStatus status)
status - @Query(value="select r from Restoration r where r.status not in (\'WAITING_FOR_DPN\',\'RESTORATION_COMPLETE\',\'RESTORATION_EXPIRED\',\'ERROR\')") List<Restoration> findRunning()
void deleteByRestorationId(String restoreId)
restoreId - Copyright © 2014–2016 DuraSpace. All rights reserved.