类 SQLCriterion
- java.lang.Object
-
- org.hibernate.criterion.SQLCriterion
-
- 所有已实现的接口:
Serializable,Criterion
public class SQLCriterion extends Object implements Criterion
A SQL fragment. The string {alias} will be replaced by the alias of the root entity.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 protectedSQLCriterion(String sql)protectedSQLCriterion(String sql, Object[] values, Type[] types)protectedSQLCriterion(String sql, Object value, Type type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypedValue[]getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)Return typed values for all parameters in the rendered SQL fragmentStringtoSqlString(Criteria criteria, CriteriaQuery criteriaQuery)Render the SQL fragmentStringtoString()
-
-
-
方法详细资料
-
toSqlString
public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
从接口复制的说明:CriterionRender the SQL fragment- 指定者:
toSqlString在接口中Criterion- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The generated SQL fragment
-
getTypedValues
public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
从接口复制的说明:CriterionReturn typed values for all parameters in the rendered SQL fragment- 指定者:
getTypedValues在接口中Criterion- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The types values (for binding)
-
-