Package org.hibernate.criterion
Interface Example.PropertySelector
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
Example.AllPropertySelector,Example.NotNullOrZeroPropertySelector,Example.NotNullPropertySelector
- Enclosing class:
- Example
public static interface Example.PropertySelector extends java.io.SerializableA strategy for choosing property values for inclusion in the query criteria. Note that property selection (for inclusion) operates separately from excluding a property. Excluded properties are not even passed in to the PropertySelector for consideration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleaninclude(java.lang.Object propertyValue, java.lang.String propertyName, Type type)Determine whether the given property should be used in the criteria.
-
-
-
Method Detail
-
include
boolean include(java.lang.Object propertyValue, java.lang.String propertyName, Type type)Determine whether the given property should be used in the criteria.- Parameters:
propertyValue- 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;falseindiates it should not.
-
-