类 Junction
- java.lang.Object
-
- org.hibernate.criterion.Junction
-
- 所有已实现的接口:
Serializable,Criterion
- 直接已知子类:
Conjunction,Disjunction
public class Junction extends Object implements Criterion
A sequence of a logical expressions combined by some associative logical operator- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classJunction.NatureThe type of junction
-
构造器概要
构造器 限定符 构造器 说明 protectedJunction(Junction.Nature nature)protectedJunction(Junction.Nature nature, Criterion... criterion)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Junctionadd(Criterion criterion)Adds a criterion to the junction (and/or)Iterable<Criterion>conditions()Access the conditions making up the junctionJunction.NaturegetNature()TypedValue[]getTypedValues(Criteria crit, CriteriaQuery criteriaQuery)Return typed values for all parameters in the rendered SQL fragmentStringtoSqlString(Criteria crit, CriteriaQuery criteriaQuery)Render the SQL fragmentStringtoString()
-
-
-
构造器详细资料
-
Junction
protected Junction(Junction.Nature nature)
-
Junction
protected Junction(Junction.Nature nature, Criterion... criterion)
-
-
方法详细资料
-
add
public Junction add(Criterion criterion)
Adds a criterion to the junction (and/or)- 参数:
criterion- The criterion to add- 返回:
this, for method chaining
-
getNature
public Junction.Nature getNature()
-
conditions
public Iterable<Criterion> conditions()
Access the conditions making up the junction- 返回:
- the criterion
-
getTypedValues
public TypedValue[] getTypedValues(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException
从接口复制的说明:CriterionReturn typed values for all parameters in the rendered SQL fragment- 指定者:
getTypedValues在接口中Criterion- 参数:
crit- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The types values (for binding)
- 抛出:
HibernateException- Problem determining types.
-
toSqlString
public String toSqlString(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException
从接口复制的说明:CriterionRender the SQL fragment- 指定者:
toSqlString在接口中Criterion- 参数:
crit- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The generated SQL fragment
- 抛出:
HibernateException- Problem during rendering.
-
-