Interface RestoreRepo

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByRestorationId​(java.lang.String restoreId)
      Deletes the restore entity
      java.util.List<Restoration> findByDestinationHost​(java.lang.String host)
      Returns a list of restorations for a given destinantion host.
      Restoration findByRestorationId​(java.lang.String restorationId)  
      java.util.List<Restoration> findBySnapshotNameOrderByModifiedDesc​(java.lang.String name)
      Returns a list of restorations based on the restoration's snapshot name property.
      java.util.List<Restoration> findByStatus​(org.duracloud.snapshot.dto.RestoreStatus status)
      Returns a list of restorations based on the restoration's status
      java.util.List<Restoration> findRunning()  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, delete, delete, deleteAll, exists, findOne, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • findByDestinationHost

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

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

        Restoration findByRestorationId​(java.lang.String restorationId)
        Parameters:
        restorationId -
        Returns:
      • findByStatus

        java.util.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\')")
        java.util.List<Restoration> findRunning()
      • deleteByRestorationId

        void deleteByRestorationId​(java.lang.String restoreId)
        Deletes the restore entity
        Parameters:
        restoreId -