Interface ProguardRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Proguard,Long>, org.springframework.data.jpa.repository.JpaRepository<Proguard,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Proguard>, org.springframework.data.repository.ListCrudRepository<Proguard,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Proguard,Long>, org.springframework.data.repository.PagingAndSortingRepository<Proguard,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Proguard>, org.springframework.data.repository.Repository<Proguard,Long>

public interface ProguardRepository extends org.springframework.data.jpa.repository.JpaRepository<Proguard,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Proguard>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    <T> Optional<T>
    getProguardByProguardId(Long proguardId, Class<T> type)
    查询指定字段
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

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

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

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

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

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

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • searchAllByProguardName

      List<Proguard> searchAllByProguardName(@Param("proguardName") String proguardName)
    • getProguardByProguardId

      Proguard getProguardByProguardId(@Param("proguardId") Long proguardId)
    • getProguardByProguardId

      <T> Optional<T> getProguardByProguardId(@Param("proguardId") Long proguardId, Class<T> type)
      查询指定字段
      Parameters:
      proguardId -
      type - 形如 ProguardDTO.java 这个 interface
      Returns: