Package org.cswteams.ms3.dao
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>
-
Method Summary
Modifier and TypeMethodDescriptionfindByReceiverIdAndStatus(Long senderId, RequestStatus status) Return all requests made to the server having a specific status (pending)findBySenderId(Long senderId) Return all requests made by the senderfindBySenderIdAndTurnIdAndStatus(Long senderId, Long shiftId, RequestStatus status) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findBySenderIdAndTurnIdAndStatus
-
findBySenderId
Return all requests made by the sender- Parameters:
senderId- sender id- Returns:
- list of all requests made by
senderId
-
findByReceiverIdAndStatus
Return all requests made to the server having a specific status (pending)- Parameters:
senderId- sender idstatus- status required- Returns:
- list of all requests made by
senderIdwith status matchingstatus
-