Interface OIDCClientDataRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<OIDCClientData,​String>, org.springframework.data.jpa.repository.JpaRepository<OIDCClientData,​String>, org.springframework.data.repository.PagingAndSortingRepository<OIDCClientData,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<OIDCClientData>, org.springframework.data.repository.Repository<OIDCClientData,​String>

    @Repository
    public interface OIDCClientDataRepository
    extends org.springframework.data.jpa.repository.JpaRepository<OIDCClientData,​String>
    The Interface OIDCClientData.
    Author:
    Mahammed Taheer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<OIDCClientData> findByClientId​(String clientId)  
      • 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 Detail

      • findByClientId

        @Cacheable(value="oidc_client_data",
                   unless="#result == null")
        @Query("select oi from OIDCClientData oi where oi.clientId = :clientId")
        Optional<OIDCClientData> findByClientId​(@Param("clientId")
                                                String clientId)