Interface PasswordResetTokenRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<PasswordResetToken,Long>, org.springframework.data.jpa.repository.JpaRepository<PasswordResetToken,Long>, org.springframework.data.repository.ListCrudRepository<PasswordResetToken,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<PasswordResetToken,Long>, org.springframework.data.repository.PagingAndSortingRepository<PasswordResetToken,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<PasswordResetToken>, org.springframework.data.repository.Repository<PasswordResetToken,Long>

@Repository public interface PasswordResetTokenRepository extends org.springframework.data.jpa.repository.JpaRepository<PasswordResetToken,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     

    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

    • findByToken

      PasswordResetToken findByToken(String token)
    • deleteAllExpiredSince

      @Modifying @Query("delete from PasswordResetToken t where t.expiryDate <= ?1") void deleteAllExpiredSince(Date now)