Interface TextRepository

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

public interface TextRepository extends org.springframework.data.jpa.repository.JpaRepository<TextEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<TextEntity>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    findByElasticStatusAndVectorStatusNot(String elasticStatus, String vectorStatus)
    查找状态为指定值但向量状态不是指定值的Text实体
     
     

    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, 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

    • findByUid

      Optional<TextEntity> findByUid(String uid)
    • findByKbase_UidAndDeletedFalse

      List<TextEntity> findByKbase_UidAndDeletedFalse(String kbUid)
    • existsByTitleAndKbase_UidAndDeletedFalse

      Boolean existsByTitleAndKbase_UidAndDeletedFalse(String title, String kbUid)
    • findByElasticStatusAndVectorStatusNot

      List<TextEntity> findByElasticStatusAndVectorStatusNot(String elasticStatus, String vectorStatus)
      查找状态为指定值但向量状态不是指定值的Text实体
      Parameters:
      elasticStatus - 状态值
      vectorStatus - 向量状态值
      Returns:
      Text实体列表