Interface CategoryRepository
- 
- All Superinterfaces:
- org.springframework.data.repository.CrudRepository<Category,java.lang.String>,- org.springframework.data.mongodb.repository.MongoRepository<Category,java.lang.String>,- org.springframework.data.repository.PagingAndSortingRepository<Category,java.lang.String>,- org.springframework.data.repository.query.QueryByExampleExecutor<Category>,- org.springframework.data.repository.Repository<Category,java.lang.String>
 
 @Repository public interface CategoryRepository extends org.springframework.data.mongodb.repository.MongoRepository<Category,java.lang.String> 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.LongcountAll()CategoryfindByName(java.lang.String categoryName)org.springframework.data.domain.Page<Category>search(java.lang.String query, org.springframework.data.domain.Pageable page)- 
Methods inherited from interface org.springframework.data.repository.CrudRepositorycount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAllById, findById, save
 - 
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepositoryfindAll, findAll, findAll, findAll, insert, insert, saveAll
 
- 
 
- 
- 
- 
Method Detail- 
countAll@Query(value="{}", count=true) java.lang.Long countAll()
 - 
findByNameCategory findByName(java.lang.String categoryName) 
 - 
search@Query("{ $or: [{ name : {$regex:?0,$options:\'i\'}},{ keywords : {$regex:?0,$options:\'i\'}},{ searchTerms : {$regex:?0,$options:\'i\'}} ]}") org.springframework.data.domain.Page<Category> search(java.lang.String query, org.springframework.data.domain.Pageable page)
 
- 
 
-