Package com.skava.auth.repository
Interface UserSessionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserSession,
,Long> org.springframework.data.jpa.repository.JpaRepository<UserSession,
,Long> org.springframework.data.repository.ListCrudRepository<UserSession,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<UserSession,
,Long> org.springframework.data.repository.PagingAndSortingRepository<UserSession,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<UserSession>
,org.springframework.data.repository.Repository<UserSession,
Long>
@Repository
public interface UserSessionRepository
extends org.springframework.data.jpa.repository.JpaRepository<UserSession,Long>
Repository class to represent the data access layer of the `user_session` entity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
deleteAllSessionByUserId
(Long userId, CacheImpl cacheImpl) findAllByUserIdAndStatus
(Long userId, int status) findAllByUserIdAndStatusOrderByStartTimeDesc
(Long userId, int status, org.springframework.data.domain.Pageable pageable) findTopBySessionId
(String sessionId) Service definition to find user session by session 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.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
-
findTopBySessionId
Service definition to find user session by session id.- Parameters:
sessionId
- String- Returns:
- UserSession
-
findAllByUserIdAndStatus
-
findAllByUserIdAndStatusOrderByStartTimeDesc
List<UserSession> findAllByUserIdAndStatusOrderByStartTimeDesc(Long userId, int status, org.springframework.data.domain.Pageable pageable) -
deleteAllSessionByUserId
-