Interface IResourceReindexJobDao

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      List<ResourceReindexJobEntity> findAll​(org.springframework.data.domain.Pageable thePage, boolean theDeleted)
      Deprecated.
       
      Optional<Integer> getReindexCount​(Long theId)
      Deprecated.
       
      void markAllOfTypeAsDeleted()
      Deprecated.
       
      void markAllOfTypeAsDeleted​(String theType)
      Deprecated.
       
      void markAsDeletedById​(Long theId)
      Deprecated.
       
      void setReindexCount​(Long theId, int theNewCount)
      Deprecated.
       
      void setSuspendedUntil​(Date theSuspendedUntil)
      Deprecated.
       
      void setThresholdLow​(Long theId, Date theLow)
      Deprecated.
       
      • 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, 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, findOne
    • Method Detail

      • markAllOfTypeAsDeleted

        @Modifying
        @Query("UPDATE ResourceReindexJobEntity j SET j.myDeleted = true WHERE j.myResourceType = :type")
        void markAllOfTypeAsDeleted​(@Param("type")
                                    String theType)
        Deprecated.
      • markAllOfTypeAsDeleted

        @Modifying
        @Query("UPDATE ResourceReindexJobEntity j SET j.myDeleted = true")
        void markAllOfTypeAsDeleted()
        Deprecated.
      • markAsDeletedById

        @Modifying
        @Query("UPDATE ResourceReindexJobEntity j SET j.myDeleted = true WHERE j.myId = :pid")
        void markAsDeletedById​(@Param("pid")
                               Long theId)
        Deprecated.
      • findAll

        @Query("SELECT j FROM ResourceReindexJobEntity j WHERE j.myDeleted = :deleted")
        List<ResourceReindexJobEntityfindAll​(org.springframework.data.domain.Pageable thePage,
                                               @Param("deleted")
                                               boolean theDeleted)
        Deprecated.
      • setSuspendedUntil

        @Modifying
        @Query("UPDATE ResourceReindexJobEntity j SET j.mySuspendedUntil = :suspendedUntil")
        void setSuspendedUntil​(@Param("suspendedUntil")
                               Date theSuspendedUntil)
        Deprecated.
      • setThresholdLow

        @Modifying
        @Query("UPDATE ResourceReindexJobEntity j SET j.myThresholdLow = :low WHERE j.myId = :id")
        void setThresholdLow​(@Param("id")
                             Long theId,
                             @Param("low")
                             Date theLow)
        Deprecated.
      • getReindexCount

        @Query("SELECT j.myReindexCount FROM ResourceReindexJobEntity j WHERE j.myId = :id")
        Optional<IntegergetReindexCount​(@Param("id")
                                          Long theId)
        Deprecated.
      • setReindexCount

        @Query("UPDATE ResourceReindexJobEntity j SET j.myReindexCount = :newCount WHERE j.myId = :id")
        @Modifying
        void setReindexCount​(@Param("id")
                             Long theId,
                             @Param("newCount")
                             int theNewCount)
        Deprecated.