接口 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>
-
方法概要
修饰符和类型方法说明longcountByHash(String hash) 按hash值查看是否已存在相同的ServiceApivoiddeleteById(Long id) findByHash(String hash) 按hash值查找已存在相同的ServiceApifindByRouteIdAndServiceApiUrlAndRequestMethod(Long routeId, String serviceApiUrl, org.springframework.web.bind.annotation.RequestMethod requestMethod) 根据RouteId,serviceApiPath,RequestMethod 查询数据findBySkipAuthorizationEqualsAndStatusEquals(Boolean skipAuthorization, Integer status) findServiceApiUrlsByResourceCode(String resourceCode) 从接口继承的方法 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- routeIdserviceApiUrl- serviceApiUrlrequestMethod- requestMethod- 返回:
- List
-
countByHash
按hash值查看是否已存在相同的ServiceApi- 参数:
hash-- 返回:
-
findByHash
按hash值查找已存在相同的ServiceApi- 参数:
hash-- 返回:
-