com.github.wz2cool.elasticsearch.repository.ElasticsearchExtRepository Maven / Gradle / Ivy
package com.github.wz2cool.elasticsearch.repository;
import com.github.wz2cool.elasticsearch.model.LogicPagingResult;
import com.github.wz2cool.elasticsearch.query.DynamicQuery;
import com.github.wz2cool.elasticsearch.query.LogicPagingQuery;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.repository.NoRepositoryBean;
import java.util.List;
import java.util.Optional;
/**
* Abstract Elasticsearch Repository
*
* @param entity class
* @author Frank
*/
@NoRepositoryBean
public interface ElasticsearchExtRepository extends ElasticsearchRepository {
/**
* delete by dynamic query
*
* @param dynamicQuery dynamic query
*/
void deleteByDynamicQuery(DynamicQuery dynamicQuery);
List selectByDynamicQuery(DynamicQuery dynamicQuery);
Optional selectFirstByDynamicQuery(DynamicQuery dynamicQuery);
List selectByDynamicQuery(DynamicQuery dynamicQuery, int page, int pageSize);
/**
* select by logic paging
*
* @param logicPagingQuery logic paging query
* @return logic paging result
*/
LogicPagingResult selectByLogicPaging(LogicPagingQuery logicPagingQuery);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy