Interface SubscriptionRepository

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

@Repository @NullMarked public interface SubscriptionRepository extends org.springframework.data.jpa.repository.JpaRepository<Subscription, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Subscription>
订阅数据访问接口,提供对订阅数据的CRUD操作和查询功能
Author:
xezzon
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    根据应用ID查询所有订阅记录
    根据应用ID和接口编码集合查询订阅记录

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    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.jpa.repository.JpaSpecificationExecutor

    count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, update

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

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

    • findByAppIdAndOpenapiCodeIn

      List<Subscription> findByAppIdAndOpenapiCodeIn(String appId, Collection<String> openapiCodes)
      根据应用ID和接口编码集合查询订阅记录
      Parameters:
      appId - 应用ID
      openapiCodes - 接口编码集合
      Returns:
      订阅记录列表
    • findByAppId

      List<Subscription> findByAppId(String appId)
      根据应用ID查询所有订阅记录
      Parameters:
      appId - 应用ID
      Returns:
      订阅记录列表