All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.rocket.abstraction.service.ConditionalService Maven / Gradle / Ivy

There is a newer version: 2.0.4.1.RELEASE
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy