Top Description Fields Constructors Methods
org.hibernate.criterion

public Class InExpression

extends Object
implements Criterion
Class Inheritance
All Implemented Interfaces
org.hibernate.criterion.Criterion, java.io.Serializable
Imports
java.util.ArrayList, org.hibernate.Criteria, .EntityMode, .HibernateException, org.hibernate.engine.TypedValue, org.hibernate.type.CompositeType, .Type, org.hibernate.util.StringHelper

Constrains the property to a specified list of values
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final String
private final Object[]

Constructor Summary

AccessConstructor and Description
protected
InExpression(String propertyName, Object[] values)

Method Summary

Modifier and TypeMethod and Description
public TypedValue[]
getTypedValues(Criteria
The local criteria
criteria
,
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
criteria
,
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

propertyNameback to summary
private final String propertyName
valuesback to summary
private final Object[] values

Constructor Detail

InExpressionback to summary
protected InExpression(String propertyName, Object[] values)

Method Detail

getTypedValuesback to summary
public TypedValue[] getTypedValues(Criteria criteria, 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
criteria: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 criteria, CriteriaQuery criteriaQuery) throws HibernateException

Implements org.hibernate.criterion.Criterion.toSqlString.

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

Render the SQL fragment

Parameters
criteria: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.