
org.dellroad.querystream.jpa.QueryConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querystream-jpa Show documentation
Show all versions of querystream-jpa Show documentation
Build JPA Criteria queries using a Stream-like API
The newest version!
/*
* Copyright (C) 2018 Archie L. Cobbs. All rights reserved.
*/
package org.dellroad.querystream.jpa;
import jakarta.persistence.criteria.CommonAbstractCriteria;
import jakarta.persistence.criteria.CriteriaBuilder;
import jakarta.persistence.criteria.Selection;
/**
* Configures a critiera query of some kind.
*
* @param criteria query type
* @param target/result type
* @param target/result criteria type
*/
@FunctionalInterface
public interface QueryConfigurer> {
/**
* Configure the given query.
*
* @param builder criteria builder
* @param query the query to configure
* @return selection for query target/result
*/
S configure(CriteriaBuilder builder, C query);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy