接口 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>
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    countByServiceApiId(long serviceApiId)
     
    void
     
    void
    deleteByServiceApiId(long serviceApiId)
     
    void
    deleteByServiceApiIdAndResourceId(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

      @Transactional(readOnly=true) List<ResourceApiRel> findByServiceApiId(Long serviceApiId)
    • 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

      @Transactional(readOnly=true) List<ResourceApiRel> findByResourceId(Long resourceId)
    • 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)