Interface IdentityCacheRepository

  • All Superinterfaces:
    io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<IdentityEntity,​String>, org.springframework.data.repository.CrudRepository<IdentityEntity,​String>, org.springframework.data.jpa.repository.JpaRepository<IdentityEntity,​String>, org.springframework.data.repository.PagingAndSortingRepository<IdentityEntity,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<IdentityEntity>, org.springframework.data.repository.Repository<IdentityEntity,​String>

    @Repository
    public interface IdentityCacheRepository
    extends io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<IdentityEntity,​String>
    Repository class for Identity Cache table
    Author:
    Loganathan Sekar
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Object[]> findDemoDataById​(String id)  
      List<Object[]> findTransactionLimitById​(String id)  
      • Methods inherited from interface io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository

        create, createNamedQuerySelect, createNamedQueryUpdateOrDelete, createQuerySelect, createQuerySelect, createQueryUpdateOrDelete, delete, findAll, findById, update
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • findDemoDataById

        @Query("SELECT i.id, i.demographicData, i.expiryTimestamp, i.transactionLimit, i.token, i.crBy, i.crDTimes, i.updBy, i.updDTimes, i.isDeleted, i.delDTimes FROM IdentityEntity i where i.id = :id")
        List<Object[]> findDemoDataById​(@Param("id")
                                        String id)
      • findTransactionLimitById

        @Query("SELECT i.id, i.expiryTimestamp, i.transactionLimit  FROM IdentityEntity i where i.id = :id")
        List<Object[]> findTransactionLimitById​(@Param("id")
                                                String id)