Package org.hibernate.criterion
Class NotEmptyExpression
- java.lang.Object
-
- org.hibernate.criterion.AbstractEmptinessExpression
-
- org.hibernate.criterion.NotEmptyExpression
-
- All Implemented Interfaces:
java.io.Serializable
,Criterion
public class NotEmptyExpression extends AbstractEmptinessExpression implements Criterion
An expression asserting that a collection property is empty- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.criterion.AbstractEmptinessExpression
propertyName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NotEmptyExpression(java.lang.String propertyName)
Constructs an EmptyExpression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
excludeEmpty()
Should empty rows be excluded?-
Methods inherited from class org.hibernate.criterion.AbstractEmptinessExpression
getQueryableCollection, getTypedValues, toSqlString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.criterion.Criterion
getTypedValues, toSqlString
-
-
-
-
Constructor Detail
-
NotEmptyExpression
protected NotEmptyExpression(java.lang.String propertyName)
Constructs an EmptyExpression- Parameters:
propertyName
- The collection property name- See Also:
Restrictions.isNotEmpty(java.lang.String)
-
-
Method Detail
-
excludeEmpty
protected boolean excludeEmpty()
Description copied from class:AbstractEmptinessExpression
Should empty rows be excluded?- Specified by:
excludeEmpty
in classAbstractEmptinessExpression
- Returns:
true
Indicates the expression should be 'exists';false
indicates 'not exists'
-
-