接口 IRepositoryInt<T>

所有超级接口:
org.springframework.data.repository.CrudRepository<T,Integer>, org.springframework.data.jpa.repository.JpaRepository<T,Integer>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, org.springframework.data.repository.ListCrudRepository<T,Integer>, org.springframework.data.repository.ListPagingAndSortingRepository<T,Integer>, org.springframework.data.repository.PagingAndSortingRepository<T,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,Integer>

public interface IRepositoryInt<T> extends org.springframework.data.jpa.repository.JpaRepository<T,Integer>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    delete(T entity)
    删除指定数据
    void
    deleteAll(Iterable<? extends T> iterable)
    批量删除
    org.springframework.data.domain.Page<T>
    findAll(org.springframework.data.domain.Pageable pageable)
    查询分页数据
    查询分页数据
    <S extends T>
    S
    save(S s)
    保存数据

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

    count, deleteAll, deleteAllById, deleteById, existsById, findById

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

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

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

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

    findAll, findAllById, saveAll

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

    findAll

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

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

    • save

      <S extends T> S save(S s)
      保存数据
      指定者:
      save 在接口中 org.springframework.data.repository.CrudRepository<T,Integer>
      类型参数:
      S - 实体集
      参数:
      s - 实体
      返回:
      返回结果
    • findAll

      org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
      查询分页数据
      指定者:
      findAll 在接口中 org.springframework.data.repository.PagingAndSortingRepository<T,Integer>
      参数:
      pageable - 分页集
      返回:
      返回结果
    • delete

      void delete(T entity)
      删除指定数据
      指定者:
      delete 在接口中 org.springframework.data.repository.CrudRepository<T,Integer>
      参数:
      entity - 实体
    • deleteAll

      void deleteAll(Iterable<? extends T> iterable)
      批量删除
      指定者:
      deleteAll 在接口中 org.springframework.data.repository.CrudRepository<T,Integer>
      参数:
      iterable -
    • listPaginated

      PageEntity<T> listPaginated(JpaCriteriaBuilder<T> cb)
      查询分页数据
      参数:
      cb - 条件
      返回:
      返回结果