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 Type
    Method
    Description
    void
    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 id
     
    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

      OAuthClient findByClientIdAndCollectionId(String clientId, Long collectionId)
      This method returns the OAuthClient by querying the database by client id and collection id.
      Parameters:
      clientId - a String object.
      collectionId - a Long object.
      Returns:
      a OAuthClient object.
    • deleteByClientIdAndCollectionId

      void deleteByClientIdAndCollectionId(String clientId, Long collectionId)
      This method will delete the OAuthClient by querying the database by client id and collection id.
      Parameters:
      clientId - a String object.
      collectionId - a Long object.
    • existsByClientIdAndCollectionId

      boolean existsByClientIdAndCollectionId(String clientId, long collectionId)
      existsByClientIdAndCollectionId - To check if an oauth client exists for the given clientId and collectionId.
      Parameters:
      clientId - the clientId
      collectionId - the collectionId
      Returns:
      boolean value
    • findByClientId

      OAuthClient findByClientId(String clientId)