Interface TurSNSiteRepository

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

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

    Modifier and Type
    Method
    Description
    void
    delete(@NotNull TurSNSite turSNSite)
     
    void
     
    @NotNull List<TurSNSite>
    findAll(@NotNull org.springframework.data.domain.Sort name)
     
    findByCreatedBy(org.springframework.data.domain.Sort name, String createdBy)
     
    findById(@NotNull String id)
     
     
    @NotNull TurSNSite
    save(@NotNull TurSNSite turSNSite)
     

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

    count, 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

    findAll, findAllById, saveAll

    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("turSNSitefindAll") @NotNull @NotNull List<TurSNSite> findAll(@NotNull @NotNull org.springframework.data.domain.Sort name)
      Specified by:
      findAll in interface org.springframework.data.repository.ListPagingAndSortingRepository<TurSNSite,String>
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<TurSNSite,String>
    • findByCreatedBy

      @Cacheable("turSNSitefindAByCreatedBy") List<TurSNSite> findByCreatedBy(org.springframework.data.domain.Sort name, String createdBy)
    • findById

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

      @Cacheable("turSNSitefindByName") Optional<TurSNSite> findByName(String name)
    • save

      @CacheEvict(value={"turSNSitefindAll","turSNSitefindById","turSNSitefindByName"}, allEntries=true) @NotNull @NotNull TurSNSite save(@NotNull @NotNull TurSNSite turSNSite)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurSNSite,String>
    • delete

      @CacheEvict(value={"turSNSitefindAll","turSNSitefindById","turSNSitefindByName"}, allEntries=true) void delete(@NotNull @NotNull TurSNSite turSNSite)
      Specified by:
      delete in interface org.springframework.data.repository.CrudRepository<TurSNSite,String>
    • delete

      @Modifying @Query("delete from TurSNSite ss where ss.id = ?1") @CacheEvict(value={"turSNSitefindAll","turSNSitefindById","turSNSitefindByName"}, allEntries=true) void delete(String id)