Product Documentation : Ehcache Developer Guide : Searching a Cache : Options for Working with Nulls
Options for Working with Nulls
The Search API supports using the presence of a null as search criteria.
It also supports using the absence of a null as search criteria:
Which is equivalent to:
Alternatively, you can call constructors to set up equivalent logic:
Criteria isNull = new IsNull("middle_name");
Criteria notNull = new NotNull("middle_name");
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback