Package com.skava.auth.repository
Interface OAuthClientRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<OAuthClient,
,Long> org.springframework.data.jpa.repository.JpaRepository<OAuthClient,
,Long> org.springframework.data.repository.ListCrudRepository<OAuthClient,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<OAuthClient,
,Long> org.springframework.data.repository.PagingAndSortingRepository<OAuthClient,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<OAuthClient>
,org.springframework.data.querydsl.QuerydslPredicateExecutor<OAuthClient>
,org.springframework.data.repository.Repository<OAuthClient,
Long>
@Repository
public interface OAuthClientRepository
extends org.springframework.data.jpa.repository.JpaRepository<OAuthClient,Long>, org.springframework.data.querydsl.QuerydslPredicateExecutor<OAuthClient>
Repository class to represent the data access layer of the `oauth_client` entity.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByClientIdAndCollectionId
(String clientId, Long collectionId) This method will delete the OAuthClient by querying the database by client id and collection id.boolean
existsByClientIdAndCollectionId
(String clientId, long collectionId) existsByClientIdAndCollectionId - To check if an oauth client exists for the given clientId and collectionId.org.springframework.data.domain.Page<OAuthClient>
findAllByCollectionId
(Long collectionId, org.springframework.data.domain.Pageable pageable) Service definition to find client by collection idfindByClientId
(String clientId) findByClientIdAndCollectionId
(String clientId, Long collectionId) This method returns the OAuthClient by querying the database by client id and collection 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
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findAllByCollectionId
org.springframework.data.domain.Page<OAuthClient> findAllByCollectionId(Long collectionId, org.springframework.data.domain.Pageable pageable) Service definition to find client by collection id- Parameters:
collectionId
- The collection id.pageable
- The pageable.- Returns:
- list of OAuthClients who are all created in the given collection.
-
findByClientIdAndCollectionId
This method returns the OAuthClient by querying the database by client id and collection id.- Parameters:
clientId
- aString
object.collectionId
- aLong
object.- Returns:
- a
OAuthClient
object.
-
deleteByClientIdAndCollectionId
This method will delete the OAuthClient by querying the database by client id and collection id. -
existsByClientIdAndCollectionId
existsByClientIdAndCollectionId - To check if an oauth client exists for the given clientId and collectionId.- Parameters:
clientId
- the clientIdcollectionId
- the collectionId- Returns:
- boolean value
-
findByClientId
-