📄 criterion.java
字号:
//$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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -