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 Type
    Method
    Description
    findByAuthTokenAndToUserId(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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByAuthTokenAndToUserId

      Optional<AccountMergeToken> findByAuthTokenAndToUserId(String authToken, UUID toUserId)
      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.