Package org.localify.repositories
Interface AccountMergeTokenRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountMergeToken,,UUID> org.springframework.data.jpa.repository.JpaRepository<AccountMergeToken,,UUID> org.springframework.data.repository.ListCrudRepository<AccountMergeToken,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<AccountMergeToken,,UUID> org.springframework.data.repository.PagingAndSortingRepository<AccountMergeToken,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<AccountMergeToken>,org.springframework.data.repository.Repository<AccountMergeToken,UUID>
public interface AccountMergeTokenRepository
extends org.springframework.data.jpa.repository.JpaRepository<AccountMergeToken,UUID>
Repository for
AccountMergeTokens.-
Method Summary
Modifier and TypeMethodDescriptionfindByAuthTokenAndToUserId(String authToken, UUID toUserId) Finds an account merge token by its auth token and the ID of the user to merge into.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAuthTokenAndToUserId
Finds an account merge token by its auth token and the ID of the user to merge into.- Parameters:
authToken- The auth token.toUserId- The ID of the user to merge into.- Returns:
- An optional containing the account merge token if found, otherwise empty.
-