ca.gc.aafc.dina.service.PredicateBasedReadOnlyDinaService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
The newest version!
package ca.gc.aafc.dina.service;
import java.util.Comparator;
import java.util.List;
import java.util.function.Predicate;
/**
* Service layer to provide read-only access using {@link Predicate}.
*/
public interface PredicateBasedReadOnlyDinaService {
T findOne(K key);
/**
* @param predicate predicate or null
* @param sortComparator sort comparator or null
* @param pageOffset offset or null to use default
* @param pageLimit limit or null to use default
* @return
*/
List findAll(Predicate predicate, Comparator sortComparator, Integer pageOffset,
Integer pageLimit);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy