Interface MispServiceRepository

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

    @Repository
    public interface MispServiceRepository
    extends io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<MISPEntity,​String>
    Version:
    1.0 Defines an object to provide misp data base related operations.
    Author:
    Nagarjuna Kuchi
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      MISPEntity findByName​(String name)  
      List<MISPEntity> findByStartsWithName​(String name)  
      • 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

      • findByName

        @Query(value="select * from misp m where m.name=?",
               nativeQuery=true)
        MISPEntity findByName​(String name)
      • findByStartsWithName

        @Query(value="select * from misp m where m.name like ?%",
               nativeQuery=true)
        List<MISPEntity> findByStartsWithName​(String name)