Interface RestoreRepo

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Restoration,Long>, org.springframework.data.jpa.repository.JpaRepository<Restoration,Long>, org.springframework.data.repository.PagingAndSortingRepository<Restoration,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Restoration>, org.springframework.data.repository.Repository<Restoration,Long>

@Repository("restoreRepo") public interface RestoreRepo extends org.springframework.data.jpa.repository.JpaRepository<Restoration,Long>
Author:
Daniel Bernstein Date: Jul 21, 2014
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deletes the restore entity
    Returns a list of restorations for a given destinantion host.
    findByRestorationId(String restorationId)
     
    Returns a list of restorations based on the restoration's snapshot name property.
    findByStatus(org.duracloud.snapshot.dto.RestoreStatus status)
    Returns a list of restorations based on the restoration's status
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByDestinationHost

      List<Restoration> findByDestinationHost(String host)
      Returns a list of restorations for a given destinantion host.
      Parameters:
      host -
      Returns:
    • findBySnapshotNameOrderByModifiedDesc

      List<Restoration> findBySnapshotNameOrderByModifiedDesc(String name)
      Returns a list of restorations based on the restoration's snapshot name property.
      Parameters:
      name -
      Returns:
    • findByRestorationId

      Restoration findByRestorationId(String restorationId)
      Parameters:
      restorationId -
      Returns:
    • findByStatus

      List<Restoration> findByStatus(org.duracloud.snapshot.dto.RestoreStatus status)
      Returns a list of restorations based on the restoration's status
      Parameters:
      status -
      Returns:
    • findRunning

      @Query("select r from Restoration r where r.status not in (\'RETRIEVING_FROM_STORAGE\',\'RESTORATION_COMPLETE\',\'RESTORATION_EXPIRED\',\'ERROR\')") List<Restoration> findRunning()
    • deleteByRestorationId

      void deleteByRestorationId(String restoreId)
      Deletes the restore entity
      Parameters:
      restoreId -