Package org.hibernate.criterion
Class Example.NotNullPropertySelector
- java.lang.Object
-
- org.hibernate.criterion.Example.NotNullPropertySelector
-
- All Implemented Interfaces:
Serializable,Example.PropertySelector
- Enclosing class:
- Example
public static final class Example.NotNullPropertySelector extends Object implements Example.PropertySelector
Property selector that includes only properties that are notnull- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Example.NotNullPropertySelectorINSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description NotNullPropertySelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninclude(Object object, String propertyName, Type type)Determine whether the given property should be used in the criteria.
-
-
-
Field Detail
-
INSTANCE
public static final Example.NotNullPropertySelector INSTANCE
Singleton access
-
-
Method Detail
-
include
public boolean include(Object object, String propertyName, Type type)
Description copied from interface:Example.PropertySelectorDetermine whether the given property should be used in the criteria.- Specified by:
includein interfaceExample.PropertySelector- Parameters:
object- The property value (from the example bean)propertyName- The name of the propertytype- The type of the property- Returns:
trueindicates the property should be included;falseindicates it should not.
-
-