public class

Junction

extends Object
implements Criterion
java.lang.Object
   ↳ org.hibernate.criterion.Junction
Known Direct Subclasses

Class Overview

A sequence of a logical expressions combined by some associative logical operator

Summary

Protected Constructors
Junction(String op)
Public Methods
Junction add(Criterion criterion)
String getOp()
TypedValue[] getTypedValues(Criteria crit, CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
String toSqlString(Criteria crit, CriteriaQuery criteriaQuery)
Render the SQL fragment
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.criterion.Criterion

Protected Constructors

protected Junction (String op)

Public Methods

public Junction add (Criterion criterion)

public String getOp ()

public TypedValue[] getTypedValues (Criteria crit, CriteriaQuery criteriaQuery)

Return typed values for all parameters in the rendered SQL fragment

Parameters
crit The local criteria
criteriaQuery The overal criteria query
Returns
  • The types values (for binding)

public String toSqlString (Criteria crit, CriteriaQuery criteriaQuery)

Render the SQL fragment

Parameters
crit The local criteria
criteriaQuery The overal criteria query
Returns
  • The generated SQL fragment

public String toString ()

See Also