public class Junction extends Object implements Criterion
Modifier and Type | Class and Description |
---|---|
static class |
Junction.Nature
The type of junction
|
Modifier | Constructor and Description |
---|---|
protected |
Junction(Junction.Nature nature) |
protected |
Junction(Junction.Nature nature,
Criterion... criterion) |
Modifier and Type | Method and Description |
---|---|
Junction |
add(Criterion criterion)
Adds a criterion to the junction (and/or)
|
Iterable<Criterion> |
conditions()
Access the conditions making up the junction
|
Junction.Nature |
getNature() |
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() |
protected Junction(Junction.Nature nature)
protected Junction(Junction.Nature nature, Criterion... criterion)
public Junction add(Criterion criterion)
criterion
- The criterion to addthis
, for method chainingpublic Junction.Nature getNature()
public Iterable<Criterion> conditions()
public TypedValue[] getTypedValues(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
getTypedValues
in interface Criterion
crit
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem determining types.public String toSqlString(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
toSqlString
in interface Criterion
crit
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem during rendering.Copyright © 2016 JBoss by Red Hat. All rights reserved.