com.minlia.rocket.abstraction.service.ConditionalService Maven / Gradle / Ivy
package com.minlia.rocket.abstraction.service;
import com.minlia.rocket.data.body.AbstractQueryRequestBody;
import com.minlia.rocket.data.body.PageResponseBody;
import java.util.List;
import org.springframework.data.domain.Pageable;
/**
* An abstract find service with paginated result
*
* @author will
* @since 2.0.3
*/
public interface ConditionalService {
/**
* paginated returning according query request body and pageable
*/
public PageResponseBody findAllByCondition(QUERY queryRequestBody, Pageable pageable);
/**
* list returning according query request body and pageable
*/
public List findAllByCondition(QUERY queryRequestBody);
/**
*
* @param queryRequestBody
* @return
*/
public Long countByCondition(QUERY queryRequestBody);
/**
*
* @param queryRequestBody
* @return
*/
public Boolean existsByCondition(QUERY queryRequestBody);
/**
*
* @param queryRequestBody
* @return
*/
public Integer deleteByCondition(QUERY queryRequestBody);
}