Top Description Constructors Methods
org.hibernate.criterion

public Class Subqueries

extends Object
Class Inheritance
Annotations
@SuppressWarnings:UnusedDeclaration

Factory class for criterion instances that represent expressions involving subqueries.
Authors
Gavin King, Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
See Also
Restrictions, Projection, org.hibernate.Criteria

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Criterion

Returns:

The Criterion
eq
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being equal to the value in the subquery result.

public static Criterion

Returns:

The Criterion
eqAll
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal equals ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
exists
(DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks for the existence of rows in the subquery result

public static Criterion

Returns:

The Criterion
ge
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being greater-than-or-equal-to the value in the subquery result.

public static Criterion

Returns:

The Criterion
geAll
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is greater-than-or-equal-to ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
geSome
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is greater-than-or-equal-to SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
gt
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being greater-than the value in the subquery result.

public static Criterion

Returns:

The Criterion
gtAll
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is greater-than ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
gtSome
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is greater-than SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
in
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is IN the values in the subquery result.

public static Criterion

Returns:

The Criterion
le
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being less-than-or-equal-to the value in the subquery result.

public static Criterion

Returns:

The Criterion
leAll
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is less-than-or-equal-to ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
leSome
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is less-than-or-equal-to SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
lt
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being less-than the value in the subquery result.

public static Criterion

Returns:

The Criterion
ltAll
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is less-than ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
ltSome
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is less-than SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
ne
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given literal as being not-equal to the value in the subquery result.

public static Criterion

Returns:

The Criterion
notExists
(DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks for the non-existence of rows in the subquery result

public static Criterion

Returns:

The Criterion
notIn
(Object
The literal value to use in comparison
value
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a literal is NOT IN the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertiesEq
(String[]
The names of the properties to use in comparison
propertyNames
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of multiple given properties as being equal to the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertiesIn
(String[]
The names of the properties to use in comparison
propertyNames
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of multiple given properties as being in to the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertiesNotEq
(String[]
The names of the properties to use in comparison
propertyNames
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of multiple given properties as being not-equal to the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertiesNotIn
(String[]
The names of the properties to use in comparison
propertyNames
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of multiple given properties as being not-in to the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyEq
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property as being equal to the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyEqAll
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property equals ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGe
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to the value in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGeAll
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGeSome
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGt
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than the value in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGtAll
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyGtSome
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is greater-than SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyIn
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is in the set of values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLe
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to the value in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLeAll
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLeSome
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLt
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than the value in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLtAll
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than ALL the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyLtSome
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is less-than SOME of the values in the subquery result.

public static Criterion

Returns:

The Criterion
propertyNe
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is not equal to the value in the subquery result.

public static Criterion

Returns:

The Criterion
propertyNotIn
(String
The name of the property to use in comparison
propertyName
,
DetachedCriteria
The detached criteria representing the subquery
dc
)

Creates a criterion which checks that the value of a given property is not-in the set of values in the subquery result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Subqueriesback to summary
private Subqueries()

Method Detail

eqback to summary
public static Criterion eq(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being equal to the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
eqAllback to summary
public static Criterion eqAll(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal equals ALL the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
existsback to summary
public static Criterion exists(DetachedCriteria dc)

Creates a criterion which checks for the existence of rows in the subquery result

Parameters
dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
ExistsSubqueryExpression
geback to summary
public static Criterion ge(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being greater-than-or-equal-to the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
geAllback to summary
public static Criterion geAll(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is greater-than-or-equal-to ALL the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
geSomeback to summary
public static Criterion geSome(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is greater-than-or-equal-to SOME of the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
gtback to summary
public static Criterion gt(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being greater-than the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
gtAllback to summary
public static Criterion gtAll(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is greater-than ALL the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
gtSomeback to summary
public static Criterion gtSome(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is greater-than SOME of the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
inback to summary
public static Criterion in(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is IN the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
leback to summary
public static Criterion le(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being less-than-or-equal-to the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
leAllback to summary
public static Criterion leAll(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is less-than-or-equal-to ALL the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
leSomeback to summary
public static Criterion leSome(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is less-than-or-equal-to SOME of the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
ltback to summary
public static Criterion lt(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being less-than the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
ltAllback to summary
public static Criterion ltAll(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is less-than ALL the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
ltSomeback to summary
public static Criterion ltSome(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is less-than SOME of the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
neback to summary
public static Criterion ne(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a given literal as being not-equal to the value in the subquery result. The implication is that the subquery returns a single result..

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
notExistsback to summary
public static Criterion notExists(DetachedCriteria dc)

Creates a criterion which checks for the non-existence of rows in the subquery result

Parameters
dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
ExistsSubqueryExpression
notInback to summary
public static Criterion notIn(Object value, DetachedCriteria dc)

Creates a criterion which checks that the value of a literal is NOT IN the values in the subquery result.

Parameters
value:Object

The literal value to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
SimpleSubqueryExpression
propertiesEqback to summary
public static Criterion propertiesEq(String[] propertyNames, DetachedCriteria dc)

Creates a criterion which checks that the value of multiple given properties as being equal to the set of values in the subquery result. The implication is that the subquery returns a single result. This form is however implicitly using tuple comparisons

Parameters
propertyNames:String[]

The names of the properties to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertiesSubqueryExpression
propertiesInback to summary
public static Criterion propertiesIn(String[] propertyNames, DetachedCriteria dc)

Creates a criterion which checks that the value of multiple given properties as being in to the set of values in the subquery result. This form is implicitly using tuple comparisons

Parameters
propertyNames:String[]

The names of the properties to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertiesSubqueryExpression
propertiesNotEqback to summary
public static Criterion propertiesNotEq(String[] propertyNames, DetachedCriteria dc)

Creates a criterion which checks that the value of multiple given properties as being not-equal to the set of values in the subquery result. The assumption is that the subquery returns a single result. This form is however implicitly using tuple comparisons

Parameters
propertyNames:String[]

The names of the properties to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertiesSubqueryExpression
propertiesNotInback to summary
public static Criterion propertiesNotIn(String[] propertyNames, DetachedCriteria dc)

Creates a criterion which checks that the value of multiple given properties as being not-in to the set of values in the subquery result. This form is implicitly using tuple comparisons

Parameters
propertyNames:String[]

The names of the properties to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertiesSubqueryExpression
propertyEqback to summary
public static Criterion propertyEq(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property as being equal to the set of values in the subquery result. The implication is that the subquery returns a single result..

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyEqAllback to summary
public static Criterion propertyEqAll(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property equals ALL the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyGeback to summary
public static Criterion propertyGe(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to the value in the subquery result. The assumption is that the subquery returns a single result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression, propertyGeAll, propertyGeSome
propertyGeAllback to summary
public static Criterion propertyGeAll(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to ALL the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyGeSomeback to summary
public static Criterion propertyGeSome(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than-or-equal-to SOME of the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyGtback to summary
public static Criterion propertyGt(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than the value in the subquery result. The assumption is that the subquery returns a single result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression, propertyGtAll, propertyGtSome
propertyGtAllback to summary
public static Criterion propertyGtAll(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than ALL the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyGtSomeback to summary
public static Criterion propertyGtSome(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is greater-than SOME of the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyInback to summary
public static Criterion propertyIn(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is in the set of values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyLeback to summary
public static Criterion propertyLe(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to the value in the subquery result. The assumption is that the subquery returns a single result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression, propertyLeAll, propertyLeSome
propertyLeAllback to summary
public static Criterion propertyLeAll(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to ALL the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyLeSomeback to summary
public static Criterion propertyLeSome(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than-or-equal-to SOME of the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyLtback to summary
public static Criterion propertyLt(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than the value in the subquery result. The assumption is that the subquery returns a single result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression, propertyLtAll, propertyLtSome
propertyLtAllback to summary
public static Criterion propertyLtAll(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than ALL the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyLtSomeback to summary
public static Criterion propertyLtSome(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is less-than SOME of the values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyNeback to summary
public static Criterion propertyNe(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is not equal to the value in the subquery result. The assumption is that the subquery returns a single result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression
propertyNotInback to summary
public static Criterion propertyNotIn(String propertyName, DetachedCriteria dc)

Creates a criterion which checks that the value of a given property is not-in the set of values in the subquery result.

Parameters
propertyName:String

The name of the property to use in comparison

dc:DetachedCriteria

The detached criteria representing the subquery

Returns:Criterion

The Criterion

See Also
PropertySubqueryExpression