接口 ServiceApiDao

所有超级接口:
org.springframework.data.repository.CrudRepository<ServiceApi,Long>, io.geewit.data.jpa.essential.repository.EntityGraphCrudRepository<ServiceApi,Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<ServiceApi,Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<ServiceApi>, io.geewit.data.jpa.essential.repository.EntityGraphPagingAndSortingRepository<ServiceApi,Long>, io.geewit.data.jpa.essential.repository.JpaBatchExecutor<ServiceApi>, org.springframework.data.jpa.repository.JpaRepository<ServiceApi,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<ServiceApi>, org.springframework.data.repository.PagingAndSortingRepository<ServiceApi,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ServiceApi>, org.springframework.data.repository.Repository<ServiceApi,Long>

public interface ServiceApiDao extends io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<ServiceApi,Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<ServiceApi>, io.geewit.data.jpa.essential.repository.JpaBatchExecutor<ServiceApi>
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    按hash值查看是否已存在相同的ServiceApi
    void
     
    按hash值查找已存在相同的ServiceApi
    findByRouteIdAndServiceApiUrlAndRequestMethod(Long routeId, String serviceApiUrl, org.springframework.web.bind.annotation.RequestMethod requestMethod)
    根据RouteId,serviceApiPath,RequestMethod 查询数据
     
     

    从接口继承的方法 org.springframework.data.repository.CrudRepository

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

    从接口继承的方法 io.geewit.data.jpa.essential.repository.EntityGraphCrudRepository

    findAll, findAllById, findById

    从接口继承的方法 io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor

    findAll, findAll, findAll, findOne

    从接口继承的方法 io.geewit.data.jpa.essential.repository.EntityGraphPagingAndSortingRepository

    findAll, findAll

    从接口继承的方法 io.geewit.data.jpa.essential.repository.JpaBatchExecutor

    saveBatch

    从接口继承的方法 org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    从接口继承的方法 org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, findAll, findAll, findAll, findOne

    从接口继承的方法 org.springframework.data.repository.PagingAndSortingRepository

    findAll

    从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • 方法详细资料

    • deleteById

      @Transactional(rollbackFor=java.lang.Exception.class) @Modifying(flushAutomatically=true, clearAutomatically=true) @Query("delete from ServiceApi s where s.serviceApiId = :id") void deleteById(@Param("id") Long id)
      指定者:
      deleteById 在接口中 org.springframework.data.repository.CrudRepository<ServiceApi,Long>
    • findBySkipAuthorizationEqualsAndStatusEquals

      @Transactional(readOnly=true) List<ServiceApi> findBySkipAuthorizationEqualsAndStatusEquals(Boolean skipAuthorization, Integer status)
    • findServiceApiUrlsByResourceCode

      @Transactional(readOnly=true) @Query("select distinct sa from ServiceApi sa,ResourceApiRel rar,Resource r where sa.serviceApiId = rar.serviceApiId and rar.resourceId = r.resourceId and r.resourceCode = :resourceCode") List<ServiceApi> findServiceApiUrlsByResourceCode(@Param("resourceCode") String resourceCode)
    • findByRouteIdAndServiceApiUrlAndRequestMethod

      @Transactional(readOnly=true) List<ServiceApi> findByRouteIdAndServiceApiUrlAndRequestMethod(Long routeId, String serviceApiUrl, org.springframework.web.bind.annotation.RequestMethod requestMethod)
      根据RouteId,serviceApiPath,RequestMethod 查询数据
      参数:
      routeId - routeId
      serviceApiUrl - serviceApiUrl
      requestMethod - requestMethod
      返回:
      List
    • countByHash

      @Transactional(readOnly=true) long countByHash(String hash)
      按hash值查看是否已存在相同的ServiceApi
      参数:
      hash -
      返回:
    • findByHash

      @Transactional(readOnly=true) List<ServiceApi> findByHash(String hash)
      按hash值查找已存在相同的ServiceApi
      参数:
      hash -
      返回: