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

com.itxiaoer.commons.jpa.Criterion Maven / Gradle / Ivy

There is a newer version: 2.3.4
Show newest version
package com.itxiaoer.commons.jpa;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

/**
 * 条件表达式接口
 *
 * @author : liuyk
 */
public interface Criterion {
    /**
     * 转换
     *
     * @param root    root
     * @param query   query
     * @param builder builder
     * @return predicate
     */
    Predicate toPredicate(Root root, CriteriaQuery query,
                          CriteriaBuilder builder);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy