Interface RefreshTokenRepository<D>
- Type Parameters:
D
- The entity type
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> org.springframework.data.repository.Repository<D,
String>
- All Known Subinterfaces:
JpaRefreshTokenRepository1<D>
,JpaRefreshTokenRepository2<D>
,JpaRefreshTokenRepository3<D>
,JpaRefreshTokenRepository4<D>
,JpaRefreshTokenRepository5<D>
,JpaRefreshTokenRepository6<D>
@NoRepositoryBean
public interface RefreshTokenRepository<D>
extends org.springframework.data.repository.CrudRepository<D,String>
General interface for all repositories supporting shard paritioned refresh token assignment
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
The specific partition shard entity type managed by this repositoryfindByAncestor
(String ancestoryKey) Find all refresh token instances in an inheritance line rooted to the original refresh token.int
The specific partition managed by this repositoryMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findByAncestor
Find all refresh token instances in an inheritance line rooted to the original refresh token. SeeRefreshToken.getAncestor()
for more information on how ancestor is used.- Parameters:
ancestoryKey
- The original refresh token that started the line- Returns:
- All refresh token instances in the inheritance line
-
partition
int partition()The specific partition managed by this repository- Returns:
- The specific partition managed by this repository
-
entityType
Class<?> entityType()The specific partition shard entity type managed by this repository- Returns:
- The specific partition shard entity type managed by this repository
-