接口 ResourceApiRelDao
- 所有超级接口:
org.springframework.data.repository.CrudRepository<ResourceApiRel,,Long> io.geewit.data.jpa.essential.repository.EntityGraphCrudRepository<ResourceApiRel,,Long> io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<ResourceApiRel,,Long> io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<ResourceApiRel>,io.geewit.data.jpa.essential.repository.EntityGraphPagingAndSortingRepository<ResourceApiRel,,Long> io.geewit.data.jpa.essential.repository.JpaBatchExecutor<ResourceApiRel>,org.springframework.data.jpa.repository.JpaRepository<ResourceApiRel,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<ResourceApiRel>,org.springframework.data.repository.PagingAndSortingRepository<ResourceApiRel,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ResourceApiRel>,org.springframework.data.repository.Repository<ResourceApiRel,Long>
public interface ResourceApiRelDao
extends io.geewit.data.jpa.essential.repository.EntityGraphJpaRepository<ResourceApiRel,Long>, io.geewit.data.jpa.essential.repository.EntityGraphJpaSpecificationExecutor<ResourceApiRel>, io.geewit.data.jpa.essential.repository.JpaBatchExecutor<ResourceApiRel>
-
方法概要
修饰符和类型方法说明longcountByServiceApiId(long serviceApiId) voiddeleteById(Long id) voiddeleteByServiceApiId(long serviceApiId) voiddeleteByServiceApiIdAndResourceId(long serviceApiId, long resourceId) findByResourceId(Long resourceId) findByResourceIdAndNotServiceApiId(long resourceId, long serviceApiId) findByServiceApiId(Long serviceApiId) 从接口继承的方法 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 ResourceApiRel rel where rel.id = :id") void deleteById(@Param("id") Long id) - 指定者:
deleteById在接口中org.springframework.data.repository.CrudRepository<ResourceApiRel,Long>
-
countByServiceApiId
@Transactional(readOnly=true) long countByServiceApiId(long serviceApiId) -
findByServiceApiId
-
deleteByServiceApiIdAndResourceId
@Transactional(rollbackFor=java.lang.Exception.class) @Modifying(flushAutomatically=true, clearAutomatically=true) @Query("delete from ResourceApiRel rel where rel.serviceApiId = :serviceApiId and rel.resourceId = :resourceId") void deleteByServiceApiIdAndResourceId(@Param("serviceApiId") long serviceApiId, @Param("resourceId") long resourceId) -
deleteByServiceApiId
@Transactional(rollbackFor=java.lang.Exception.class) @Modifying(flushAutomatically=true, clearAutomatically=true) @Query("delete from ResourceApiRel rel where rel.serviceApiId = :serviceApiId") void deleteByServiceApiId(@Param("serviceApiId") long serviceApiId) -
findByResourceId
-
findByResourceIdAndNotServiceApiId
@Transactional(readOnly=true) @Query("select rel from ResourceApiRel rel where rel.resourceId = :resourceId and rel.serviceApiId <> :serviceApiId") List<ResourceApiRel> findByResourceIdAndNotServiceApiId(@Param("resourceId") long resourceId, @Param("serviceApiId") long serviceApiId)
-