Package | Description |
---|---|
org.hippoecm.hst.content.beans.query.filter |
The org.hippoecm.hst.content.beans.query.filter package defines the API for the HST Content Beans Query Filter
|
Modifier and Type | Method and Description |
---|---|
void |
Filter.addBetween(String fieldAttributeName,
Calendar start,
Calendar end,
DateTools.Resolution resolution)
Adds a FAST DATE RANGE constraint that the Calendar value for
fieldAttributeName is between start and end (boundaries included) BASED ON the
granularity resolution . |
void |
Filter.addBetween(String fieldAttributeName,
Object value1,
Object value2)
Adds a constraint that the value
fieldAttributeName is between value1 and value2 (boundaries included). |
void |
Filter.addContains(String scope,
String fullTextSearch)
Adds a fulltext search to this Filter.
|
void |
Filter.addEqualTo(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
Adds a constraint that the Calendar value for
fieldAttributeName rounded to its resolution is equal to the
rounded value for calendar . |
void |
Filter.addEqualTo(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is equal to value |
void |
Filter.addEqualToCaseInsensitive(String fieldAttributeName,
String value)
Case insensitive testing of
fieldAttributeName for some value . |
void |
Filter.addGreaterOrEqualThan(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addGreaterOrEqualThan(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is greater than or equal to value
note that for range queries on calendar/date instances where the granularity of, say Day, is enough, you
should use Filter.addGreaterOrEqualThan(String, java.util.Calendar, DateTools.Resolution)
with the highest resolution that is acceptable for your use case, as this performs much better, OR make sure
that your application runs with a default resolution set to for example 'day'
|
void |
Filter.addGreaterThan(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addGreaterThan(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is greater than value
note that for range queries on calendar/date instances where the granularity of, say Day, is enough, you
should use Filter.addGreaterThan(String, java.util.Calendar, org.hippoecm.repository.util.DateTools.Resolution)
with the highest resolution that is acceptable for your use case, as this performs much better, OR make sure
that your application runs with a default resolution set to for example 'day'
|
void |
Filter.addIsNull(String fieldAttributeName)
Add a constraint that the result does NOT have the property
fieldAttributeName |
void |
Filter.addLessOrEqualThan(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addLessOrEqualThan(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is less than or equal to value
note that for range queries on calendar/date instances where the granularity of, say Day, is enough, you
should use Filter.addLessOrEqualThan(String, java.util.Calendar, org.hippoecm.repository.util.DateTools.Resolution)
with the highest resolution that is acceptable for your use case, as this performs much better, OR make sure
that your application runs with a default resolution set to for example 'day'
|
void |
Filter.addLessThan(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addLessThan(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is less than value
note that for range queries on calendar/date instances where the granularity of, say Day, is enough, you
should use Filter.addLessThan(String, java.util.Calendar, org.hippoecm.repository.util.DateTools.Resolution)
with the highest resolution that is acceptable for your use case, as this performs much better, OR make sure
that your application runs with a default resolution set to for example 'day'
|
void |
Filter.addLike(String fieldAttributeName,
Object value)
Deprecated.
Since 7.9.0 use
Filter.addLike(String, String) instead as the Object param was stringified anyway |
void |
Filter.addLike(String fieldAttributeName,
String value)
This function is based on the LIKE predicate found in SQL.
|
void |
Filter.addNotBetween(String fieldAttributeName,
Calendar start,
Calendar end,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addNotBetween(String fieldAttributeName,
Object value1,
Object value2)
Adds a constraint that the value
fieldAttributeName is NOT between value1 and value2 ,
including NOT value1 and value2
note that for range queries on calendar/date instances where the granularity of, say Day, is enough, you
should use Filter.addNotBetween(String, java.util.Calendar, java.util.Calendar, DateTools.Resolution)
with the highest resolution that is acceptable for your use case, as this performs much better, OR make sure
that your application runs with a default resolution set to for example 'day'
|
void |
Filter.addNotContains(String scope,
String fullTextSearch)
The negated version of
Filter.addContains(String, String) |
void |
Filter.addNotEqualTo(String fieldAttributeName,
Calendar calendar,
DateTools.Resolution resolution)
note: supported resolutions are
DateTools.Resolution.YEAR ,
DateTools.Resolution.MONTH ,
DateTools.Resolution.DAY or
DateTools.Resolution.HOUR
|
void |
Filter.addNotEqualTo(String fieldAttributeName,
Object value)
Adds a constraint that the value
fieldAttributeName is NOT equal to value |
void |
Filter.addNotEqualToCaseInsensitive(String fieldAttributeName,
String value)
Case insensitive testing of
fieldAttributeName for some value . |
void |
Filter.addNotLike(String fieldAttributeName,
Object value)
Deprecated.
Since 7.9.0 use
Filter.addNotLike(String, String) instead as the Object param was stringified anyway |
void |
Filter.addNotLike(String fieldAttributeName,
String value) |
void |
Filter.addNotNull(String fieldAttributeName)
Add a constraint that the result does have the property
fieldAttributeName , regardless its value |
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.