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

cz.encircled.joiner.query.QueryFeature Maven / Gradle / Ivy

package cz.encircled.joiner.query;

import com.querydsl.jpa.impl.JPAQuery;

/**
 * Query features allows to modify the request/query before executing
 *
 * @author Vlad on 27-Jul-16.
 */
public interface QueryFeature {

    /**
     * This method is called before JPA query creation and allows request modification
     *
     * @param request initial joiner request
     * @param  query from
     * @param  query return type
     * @return modified request
     */
     JoinerQuery before(JoinerQuery request);

    /**
     * This method is called just before JPA query execution and allows to modify result query directly
     *
     * @param request initial joiner request
     * @param query JPA query
     * @return modified JPA query to be executed
     */
     JPAQuery after(JoinerQuery request, JPAQuery query);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy