Interface AcmeOrderRepository

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

    @Repository
    public interface AcmeOrderRepository
    extends org.springframework.data.jpa.repository.JpaRepository<AcmeOrder,​Long>
    Spring Data repository for the AcmeOrder entity.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long countByAccountId​(long accountId)  
      List<AcmeOrder> findByOrderId​(long orderId)  
      List<AcmeOrder> findByPendingExpiryBefore​(Instant expiresBefore)  
      org.springframework.data.domain.Page<AcmeOrder> findPipelineIsNull​(org.springframework.data.domain.Pageable pageable)  
      • 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 Detail

      • findByOrderId

        @Query(name="AcmeOrder.findByOrderId")
        List<AcmeOrder> findByOrderId​(@Param("orderId")
                                      long orderId)
      • findPipelineIsNull

        @Query(name="AcmeOrder.findPipelineIsNull")
        org.springframework.data.domain.Page<AcmeOrder> findPipelineIsNull​(org.springframework.data.domain.Pageable pageable)
      • countByAccountId

        @Query(name="AcmeOrder.countByAccountId")
        long countByAccountId​(@Param("accountId")
                              long accountId)
      • findByPendingExpiryBefore

        @Query(name="AcmeOrder.findByPendingExpiryBefore")
        List<AcmeOrder> findByPendingExpiryBefore​(@Param("expiresBefore")
                                                  Instant expiresBefore)