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 TypeMethodDescriptionvoidfindAll()@NotNull Optional<TurSEInstance> @NotNull TurSEInstancesave(@NotNull TurSEInstance turSEInstance) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsByIdMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<TurSEInstance,String> - Specified by:
findAllin interfaceorg.springframework.data.repository.ListCrudRepository<TurSEInstance,String>
-
findById
@Cacheable("turSEInstancefindById") @NotNull @NotNull Optional<TurSEInstance> findById(@NotNull @NotNull String id) - Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<TurSEInstance,String>
-
save
@CacheEvict(value={"turSEInstancefindAll","turSEInstancefindById"}, allEntries=true) @NotNull @NotNull TurSEInstance save(@NotNull @NotNull TurSEInstance turSEInstance) - Specified by:
savein interfaceorg.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)
-