com.endeca.portal.data.functions
Class DateRangeFilter
java.lang.Object
com.endeca.portal.data.functions.QueryFunction
com.endeca.portal.data.functions.QueryFilter
com.endeca.portal.data.functions.LQLFilter
com.endeca.portal.data.functions.RangeFilter
com.endeca.portal.data.functions.DateRangeFilter
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class DateRangeFilter
- extends RangeFilter
Inherit RangeFilter class to store the selection level and format style info into data source.
- Author:
- Endeca Technologies, Inc.
- See Also:
- Serialized Form
| Methods inherited from class com.endeca.portal.data.functions.RangeFilter |
applyToLQLFilter, getAttributeKey, getCompareString, getProperty, getRangeOperator, getRangeType, getValue1, getValue2, getValue3, passesSelectiveFilter, setAttributeKey, setProperty, setRangeOperator, setRangeType, setValue1, setValue2, setValue3 |
| Methods inherited from class com.endeca.portal.data.functions.QueryFunction |
beforeQueryStateAdd, clone, equals, equals, getName, getOriginatingDataSourceId, getVersion, hashCode, initializeFromJSON, setName, setOriginatingDataSourceId, setVersion, upgrade |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DateRangeFilter
protected DateRangeFilter()
getSelectionLevel
public DateRangeFilter.SelectionLevel getSelectionLevel()
- Returns:
- the selectionLevel
setSelectionLevel
public void setSelectionLevel(DateRangeFilter.SelectionLevel selectionLevel)
- Parameters:
selectionLevel - the selectionLevel to set
createDateRangeFilter
public static DateRangeFilter createDateRangeFilter(java.lang.String attributeKey,
RangeFilter.RangeOperator rangeOperator,
java.util.Date lowerBound,
java.util.Date upperBound,
DateRangeFilter.SelectionLevel selectionLevel)
throws RangeFilter.RangeFilterCreationException
- Constructs a
DateRangeFilter for filtering between a min and max date.
- Parameters:
attributeKey - rangeOperator - should be BETWEENlowerBound - min dateupperBound - max dateselectionLevel - granularity of the date range (i.e. DAY, MONTH, or YEAR)
- Throws:
RangeFilterCreationException
RangeFilter.RangeFilterCreationException
createDateRangeFilter
public static DateRangeFilter createDateRangeFilter(java.lang.String attributeKey,
RangeFilter.RangeOperator rangeOperator,
java.util.Date bound,
DateRangeFilter.SelectionLevel selectionLevel)
throws RangeFilter.RangeFilterCreationException
- Constructs a
DateRangeFilter
- Parameters:
attributeKey - rangeOperator - bound - selectionLevel -
- Throws:
RangeFilterCreationException
RangeFilter.RangeFilterCreationException
toString
public java.lang.String toString()
- Creates a string representation of the
DateRangeFilter
by appending location name to a string representation of the RangeFilter.
By doing this, two GeoFilter with different locationName will never be considered equal.
- Overrides:
toString in class RangeFilter