Interface TurSEInstanceRepository

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

public interface TurSEInstanceRepository extends org.springframework.data.jpa.repository.JpaRepository<TurSEInstance,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    @NotNull TurSEInstance
    save(@NotNull TurSEInstance turSEInstance)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById

    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

    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

    • findAll

      @Cacheable("turSEInstancefindAll") List<TurSEInstance> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<TurSEInstance,String>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<TurSEInstance,String>
    • findById

      @Cacheable("turSEInstancefindById") @NotNull @NotNull Optional<TurSEInstance> findById(@NotNull @NotNull String id)
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<TurSEInstance,String>
    • save

      @CacheEvict(value={"turSEInstancefindAll","turSEInstancefindById"}, allEntries=true) @NotNull @NotNull TurSEInstance save(@NotNull @NotNull TurSEInstance turSEInstance)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurSEInstance,String>
    • delete

      @Modifying @Query("delete from TurSEInstance si where si.id = ?1") @CacheEvict(value={"turSEInstancefindAll","turSEInstancefindById"}, allEntries=true) void delete(String id)