Uses of Class
org.hippoecm.hst.content.beans.query.exceptions.FilterException
Package
Description
The org.hippoecm.hst.content.beans.query.filter package defines the API for the HST Content Beans Query Filter
-
Uses of FilterException in org.hippoecm.hst.content.beans.query.filter
Modifier and TypeMethodDescriptionvoid
Filter.addBetween
(String fieldAttributeName, Object value1, Object value2) Adds a constraint that the valuefieldAttributeName
is betweenvalue1
andvalue2
(boundaries included).void
Filter.addBetween
(String fieldAttributeName, Calendar start, Calendar end, DateTools.Resolution resolution) Adds a FAST DATE RANGE constraint that the Calendar value forfieldAttributeName
is betweenstart
andend
(boundaries included) BASED ON the granularityresolution
.void
Filter.addContains
(String scope, String fullTextSearch) Adds a fulltext search to this Filter.void
Filter.addEqualTo
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is equal tovalue
void
Filter.addEqualTo
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) Adds a constraint that the Calendar value forfieldAttributeName
rounded to its resolution is equal to the rounded value forcalendar
.void
Filter.addEqualToCaseInsensitive
(String fieldAttributeName, String value) Case insensitive testing offieldAttributeName
for somevalue
.void
Filter.addGreaterOrEqualThan
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is greater than or equal tovalue
void
Filter.addGreaterOrEqualThan
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
Filter.addGreaterThan
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is greater thanvalue
void
Filter.addGreaterThan
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
Add a constraint that the result does NOT have the propertyfieldAttributeName
void
Filter.addLessOrEqualThan
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is less than or equal tovalue
void
Filter.addLessOrEqualThan
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
Filter.addLessThan
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is less thanvalue
void
Filter.addLessThan
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
This function is based on the LIKE predicate found in SQL.void
Filter.addNotBetween
(String fieldAttributeName, Object value1, Object value2) Adds a constraint that the valuefieldAttributeName
is NOT betweenvalue1
andvalue2
, including NOTvalue1
andvalue2
void
Filter.addNotBetween
(String fieldAttributeName, Calendar start, Calendar end, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
Filter.addNotContains
(String scope, String fullTextSearch) The negated version ofFilter.addContains(String, String)
void
Filter.addNotEqualTo
(String fieldAttributeName, Object value) Adds a constraint that the valuefieldAttributeName
is NOT equal tovalue
void
Filter.addNotEqualTo
(String fieldAttributeName, Calendar calendar, DateTools.Resolution resolution) note: supported resolutions areDateTools.Resolution.YEAR
,DateTools.Resolution.MONTH
,DateTools.Resolution.DAY
orDateTools.Resolution.HOUR
void
Filter.addNotEqualToCaseInsensitive
(String fieldAttributeName, String value) Case insensitive testing offieldAttributeName
for somevalue
.void
Filter.addNotLike
(String fieldAttributeName, String value) void
Filter.addNotNull
(String fieldAttributeName) Add a constraint that the result does have the propertyfieldAttributeName
, regardless its value