Top Description Fields Constructors Methods
org.hibernate.criterion

public Class Junction

extends Object
implements Criterion
Class Inheritance
All Implemented Interfaces
org.hibernate.criterion.Criterion, java.io.Serializable
Known Direct Subclasses
org.hibernate.criterion.Conjunction, org.hibernate.criterion.Disjunction
Imports
java.util.ArrayList, .Iterator, .List, org.hibernate.Criteria, .HibernateException, org.hibernate.engine.TypedValue, org.hibernate.util.StringHelper

A sequence of a logical expressions combined by some associative logical operator
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final List<E>
private final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Junction
add(Criterion criterion)

public String
public TypedValue[]
getTypedValues(Criteria
The local criteria
crit
,
CriteriaQuery
The overal criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment
public String
toSqlString(Criteria
The local criteria
crit
,
CriteriaQuery
The overal criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

criteriaback to summary
private final List<E> criteria
opback to summary
private final String op

Constructor Detail

Junctionback to summary
protected Junction(String op)

Method Detail

addback to summary
public Junction add(Criterion criterion)
getOpback to summary
public String getOp()
getTypedValuesback to summary
public TypedValue[] getTypedValues(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException

Implements org.hibernate.criterion.Criterion.getTypedValues.

Doc from org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment

Parameters
crit:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overal criteria query

Returns:TypedValue[]

The types values (for binding)

Exceptions
HibernateException:
Problem determining types.
toSqlStringback to summary
public String toSqlString(Criteria crit, CriteriaQuery criteriaQuery) throws HibernateException

Implements org.hibernate.criterion.Criterion.toSqlString.

Doc from org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment

Parameters
crit:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overal criteria query

Returns:String

The generated SQL fragment

Exceptions
HibernateException:
Problem during rendering.
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

See Also
java.lang.Object#toString()