Interface DataEncryptKeystoreRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String findKeyById​(Integer id)
      Find key by id.
      Long findMaxId()
      Get the max id.
      List<Integer> getIdsByKeyStatus​(String status)
      Gets the ids by key status.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, 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

      • findKeyById

        @Query("SELECT d.key from DataEncryptKeystore d where d.id = :id")
        String findKeyById​(@Param("id")
                           Integer id)
        Find key by id.
        Parameters:
        id - the id
        Returns:
        the string
      • getIdsByKeyStatus

        @Query("SELECT d.id from DataEncryptKeystore d where d.keyStatus = :status")
        List<Integer> getIdsByKeyStatus​(@Param("status")
                                        String status)
        Gets the ids by key status.
        Parameters:
        status - the status
        Returns:
        the ids by key status
      • findMaxId

        @Query("SELECT MAX(d.id) from DataEncryptKeystore d")
        Long findMaxId()
        Get the max id.
        Returns:
        the max id