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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>entityType()The specific partition shard entity type managed by this repositoryList<D>findByAncestor(String ancestoryKey)Find all refresh token instances in an inheritance line rooted to the original refresh token.intpartition()The specific partition managed by this repository
-
-
-
Method Detail
-
findByAncestor
List<D> findByAncestor(String ancestoryKey)
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
-
-