Interface UserConsentHistoryRepository

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

public interface UserConsentHistoryRepository extends org.springframework.data.jpa.repository.JpaRepository<UserConsentHistoryEntity,Long>
This is UserConsentHistoryRepository interface. This handles the below operations.
  • Load
Author:
Infosys Equinox
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<UserConsentHistoryEntity>
    findAllByUserId(org.springframework.data.domain.Pageable pageRequest, long userId)
    This is used to load all the user consent history by userId

    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

    • findAllByUserId

      org.springframework.data.domain.Page<UserConsentHistoryEntity> findAllByUserId(org.springframework.data.domain.Pageable pageRequest, long userId)
      This is used to load all the user consent history by userId
      Parameters:
      userId - Indicates the user id for which user the notes are loaded.
      pageRequest - Holds the Pageable object.
      Returns:
      The Page of UserConsentHistoryEntity object.