@Repository public interface AccessTokenRepository extends org.springframework.data.jpa.repository.JpaRepository<AccessToken,String>, org.springframework.data.querydsl.QueryDslPredicateExecutor<AccessToken>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByAuthenticationId(String key)
Delete by authentication id.
|
void |
deleteByRefreshToken(String refreshToken)
Delete by refresh token.
|
AccessToken |
findByAuthenticationId(String key)
Find by authentication id.
|
List<AccessToken> |
findByClientId(String clientId)
Find by client id.
|
List<AccessToken> |
findByClientIdAndUsername(String clientId,
String username)
Find by client id and username.
|
List<AccessToken> |
findByUsername(String uuid)
Find by username.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, saveAccessToken findByAuthenticationId(String key)
key - the key@Modifying @Query(value="delete from AccessToken at where at.refreshToken = ?1") void deleteByRefreshToken(String refreshToken)
refreshToken - the refresh tokenList<AccessToken> findByClientId(String clientId)
clientId - the client idList<AccessToken> findByClientIdAndUsername(String clientId, String username)
clientId - the client idusername - the username@Modifying @Query(value="delete from AccessToken at where at.authenticationId = ?1") void deleteByAuthenticationId(String key)
key - the keyList<AccessToken> findByUsername(String uuid)
uuid - the uuidCopyright © 2018 Global Crop Diversity Trust. All rights reserved.