Interface TokenInfoRepository

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

@Repository public interface TokenInfoRepository extends org.springframework.data.jpa.repository.JpaRepository<TokenInfo,Long>
Repository for storing token related information.
  • Method Summary

    Modifier and Type
    Method
    Description
    Find a token by the token string.

    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

    • getTokenInfoByToken

      Optional<TokenInfo> getTokenInfoByToken(String token)
      Find a token by the token string.
      Parameters:
      token - The token string to search for.
      Returns:
      The token info if found, empty otherwise.