Interface TurLLMInstanceRepository

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

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

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    <S extends TurLLMInstance>
    S
    save(S entity)
     

    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("turLLMInstancefindAll") List<TurLLMInstance> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<TurLLMInstance, String>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<TurLLMInstance, String>
    • findById

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

      @CacheEvict(value={"turLLMInstancefindAll","turLLMInstancefindById"}, allEntries=true) @NotNull <S extends TurLLMInstance> S save(@NotNull S entity)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurLLMInstance, String>
    • delete

      @Modifying @Query("delete from TurLLMInstance li where li.id = ?1") @CacheEvict(value={"turLLMInstancefindAll","turLLMInstancefindById"}, allEntries=true) void delete(String id)