接口 Criterion
-
- 所有超级接口:
Serializable
- 所有已知实现类:
AbstractEmptinessExpression,BetweenExpression,Conjunction,Disjunction,EmptyExpression,Example,ExistsSubqueryExpression,IdentifierEqExpression,IlikeExpression,InExpression,Junction,LikeExpression,LogicalExpression,NaturalIdentifier,NotEmptyExpression,NotExpression,NotNullExpression,NullExpression,PropertiesSubqueryExpression,PropertyExpression,PropertySubqueryExpression,SimpleExpression,SimpleSubqueryExpression,SizeExpression,SQLCriterion,SubqueryExpression
public interface Criterion extends Serializable
An object-oriented representation of a query criterion that may be used as a restriction in a Criteria query. Built-in criterion types are provided by the Restrictions factory class. This interface might be implemented by application classes that define custom restriction criteria.- 作者:
- Gavin King
- 另请参阅:
Restrictions,Criteria
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 TypedValue[]getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)Return typed values for all parameters in the rendered SQL fragmentStringtoSqlString(Criteria criteria, CriteriaQuery criteriaQuery)Render the SQL fragment
-
-
-
方法详细资料
-
toSqlString
String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Render the SQL fragment- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The generated SQL fragment
- 抛出:
HibernateException- Problem during rendering.
-
getTypedValues
TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Return typed values for all parameters in the rendered SQL fragment- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The types values (for binding)
- 抛出:
HibernateException- Problem determining types.
-
-