criterion.java

来自「用JSP 开发的人力资源系统。可实现用户操作」· Java 代码 · 共 44 行

JAVA
44
字号
//$Id: Criterion.java,v 1.1.2.1 2003/08/12 12:51:00 oneovthafew Exp $
package net.sf.hibernate.expression;

import java.util.Map;

import net.sf.hibernate.HibernateException;
import net.sf.hibernate.engine.SessionFactoryImplementor;
import net.sf.hibernate.engine.TypedValue;

/**
 * An object-oriented representation of a query criterion that may be used as a constraint
 * in a <tt>Criteria</tt> query.
 * Built-in criterion types are provided by the <tt>Expression</tt> factory class.
 * This interface might be implemented by application classes but, more commonly, application 
 * criterion types would extend <tt>AbstractCriterion</tt>.
 * 
 * @see net.sf.hibernate.expression.AbstractCriterion
 * @see net.sf.hibernate.expression.Expression
 * @author Gavin King
 */
public interface Criterion {

	/**
	 * Render the SQL fragment
	 * 
	 * @param sessionFactory
	 * @param persistentClass
	 * @param alias
	 * @return String
	 * @throws HibernateException
	 */
	public String toSqlString(SessionFactoryImplementor sessionFactory, Class persistentClass, String alias, Map aliasClasses) throws HibernateException;
	/**
	 * Return typed values for all parameters in the rendered SQL fragment
	 * 
	 * @param sessionFactory
	 * @param persistentClass
	 * @return TypedValue[]
	 * @throws HibernateException
	 */
	public TypedValue[] getTypedValues(SessionFactoryImplementor sessionFactory, Class persistentClass, Map aliasClasses) throws HibernateException;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?