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.Serializable
    A 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
      boolean include​(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 property
        type - The type of the property
        Returns:
        true indicates the property should be included; false indicates it should not.