Package io.meeds.oauth2.server.dao
Interface OAuthClientAppDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<OAuthClientEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<OAuthClientEntity,,Long> org.springframework.data.repository.ListCrudRepository<OAuthClientEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<OAuthClientEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<OAuthClientEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<OAuthClientEntity>,org.springframework.data.repository.Repository<OAuthClientEntity,Long>
public interface OAuthClientAppDao
extends org.springframework.data.jpa.repository.JpaRepository<OAuthClientEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByClientId(String clientId) findByClientIdAndEnabledTrue(String clientId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByClientIdAndEnabledTrue
@Query("SELECT c FROM OAuthClient c WHERE (c.registeredClientId = :clientId OR c.clientId = :clientId) AND c.enabled = true") Optional<OAuthClientEntity> findByClientIdAndEnabledTrue(@Param("clientId") String clientId) -
findByClientId
@Query("SELECT c FROM OAuthClient c WHERE c.registeredClientId = :clientId OR c.clientId = :clientId") Optional<OAuthClientEntity> findByClientId(@Param("clientId") String clientId) -
findAllSortByClientNameAsc
@Query("SELECT c FROM OAuthClient c ORDER BY c.clientName ASC") List<OAuthClientEntity> findAllSortByClientNameAsc()
-