Interface CustomizedOAuth2AuthorizedClientEntityRepository<D>
- Type Parameters:
D
- the persisted-domain counterpart forOAuth2AuthorizedClientEntity
- All Known Subinterfaces:
JpaOAuth2AuthorizedClientEntityRepository<D,
,I> OAuth2AuthorizedClientEntityRepository<D,
I>
- All Known Implementing Classes:
JpaCustomizedOAuth2AuthorizedClientEntityRepository
public interface CustomizedOAuth2AuthorizedClientEntityRepository<D>
Advanced functionality related to
OAuth2AuthorizedClientEntityRepository
.-
Method Summary
Modifier and TypeMethodDescriptionDeletes outdated entities as specified byrequest
.Attempts to newly insert the given entity into the datastore.
-
Method Details
-
insert
Attempts to newly insert the given entity into the datastore.- Parameters:
entity
- the entity to insert- Returns:
- the inserted entity, if successful
- Throws:
org.springframework.dao.DataIntegrityViolationException
- if there was an error caused by a uniqueness violation
-
cleanupOutdatedEntities
OAuth2AuthorizedClientEntityCleanupResponse cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest request) Deletes outdated entities as specified byrequest
.- Parameters:
request
- details about which entities need to be deleted- Returns:
- a response describing the result of the execution
-