Interface FederationUploadKeyRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<FederationUploadKey> findAllUploadableKeys()  
      void updateBatchTag​(byte[] keyData, String batchTag)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll, findAll
    • Method Detail

      • findAllUploadableKeys

        @Query("SELECT * FROM federation_upload_key WHERE (batch_tag is null or batch_tag = \'\')")
        List<FederationUploadKey> findAllUploadableKeys()
      • updateBatchTag

        @Modifying
        @Query("update federation_upload_key set batch_tag = :batchTag where key_data = :keyData")
        void updateBatchTag​(@Param("keyData")
                            byte[] keyData,
                            @Param("batchTag")
                            String batchTag)