Interface ShiftChangeRequestDAO

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

public interface ShiftChangeRequestDAO extends org.springframework.data.jpa.repository.JpaRepository<Request,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    Return all requests made to the server having a specific status (pending)
    findBySenderId(Long senderId)
    Return all requests made by the sender
     

    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 Details

    • findBySenderIdAndTurnIdAndStatus

      List<Request> findBySenderIdAndTurnIdAndStatus(Long senderId, Long shiftId, RequestStatus status)
    • findBySenderId

      List<Request> findBySenderId(Long senderId)
      Return all requests made by the sender
      Parameters:
      senderId - sender id
      Returns:
      list of all requests made by senderId
    • findByReceiverIdAndStatus

      List<Request> findByReceiverIdAndStatus(Long senderId, RequestStatus status)
      Return all requests made to the server having a specific status (pending)
      Parameters:
      senderId - sender id
      status - status required
      Returns:
      list of all requests made by senderId with status matching status