Interface AvailabilityRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Availability,UUID>, org.springframework.data.jpa.repository.JpaRepository<Availability,UUID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>, org.springframework.data.repository.ListCrudRepository<Availability,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<Availability,UUID>, org.springframework.data.repository.PagingAndSortingRepository<Availability,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<Availability>, org.springframework.data.repository.Repository<Availability,UUID>

@Repository public interface AvailabilityRepository extends org.springframework.data.jpa.repository.JpaRepository<Availability,UUID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>
Repository for Availability entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull List<Availability>
    findAll(@NotNull org.springframework.data.jpa.domain.Specification<Availability> specification)
    Find the Availability entities that satisfy the given Specification.
    findByRequestId(UUID requestId)
    Find the Availability entities that satisfy the given Specification and have the given Request id.
    Find the list of Availability entities that have the given status.
    Find the list of Availability entities that have the given User id.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    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 Details

    • findAll

      @NotNull @NotNull List<Availability> findAll(@NotNull @NotNull org.springframework.data.jpa.domain.Specification<Availability> specification)
      Find the Availability entities that satisfy the given Specification.
      Specified by:
      findAll in interface org.springframework.data.jpa.repository.JpaSpecificationExecutor<Availability>
      Parameters:
      specification - must not be null. It is used to filter the results of the query.
      Returns:
      a list of Availability entities that satisfy the given Specification.
    • findByRequestId

      List<Availability> findByRequestId(UUID requestId)
      Find the Availability entities that satisfy the given Specification and have the given Request id.
      Parameters:
      requestId - the id of the Request entity.
      Returns:
      a list of Availability entities that satisfy the given Specification.
    • findByUser

      List<Availability> findByUser(User user)
      Find the list of Availability entities that have the given User id.
      Parameters:
      user - the User entity.
      Returns:
      a list of Availability entities of the given User.
    • findByStatus

      List<Availability> findByStatus(Status status)
      Find the list of Availability entities that have the given status.
      Parameters:
      status - the status of the Availability entity.
      Returns:
      a list of Availability entities of the given status.