Interface ClientSessionRepository

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

@Repository public interface ClientSessionRepository extends org.springframework.data.jpa.repository.JpaRepository<ClientSession,String>
Repository class to represent the data access layer of the `client_session` entity.
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    findAllByClientIdAndStatus(String clientId, int status)
     
    Service definition to find client 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

      Optional<ClientSession> findTopBySessionId(String sessionId)
      Service definition to find client session by session id.
      Parameters:
      sessionId - String
      Returns:
      ClientSession
    • findAllByClientIdAndStatus

      List<ClientSession> findAllByClientIdAndStatus(String clientId, int status)
    • deleteAllSessionByClientId

      @Transactional default void deleteAllSessionByClientId(String clientId, CacheImpl cacheImpl)