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

com.jpaquery.core.facade.Where Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.jpaquery.core.facade;

/**
 * where字句
 * 
 * @author lujijiang
 * 
 */
public interface Where extends QueryRender {
	/**
	 * 逻辑类型
	 * 
	 * @author lujijiang
	 * 
	 */
	public enum WhereType {
		and, or
	}

	/**
	 * 获取属性
	 * 
	 * @param obj
	 * @return
	 */
	 WherePath get(T obj);

	And and();

	Or or();

	/**
	 * 存在子查询
	 * 
	 * @param subFinder
	 */
	Where exists(JpaQuery subFinder);

	/**
	 * 不存在子查询
	 * 
	 * @param subFinder
	 */
	Where notExists(JpaQuery subFinder);

	/**
	 * 追加查询语句
	 * 
	 * @param queryString
	 * @param args
	 * @return
	 */
	public QueryAppender append(String queryString, Object... args);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy