public class OwDateComparator extends OwAbstractComparator<Date>
Simple date comparator. Implements a simple compare functionality of the provided filter and value. Dynamically compare full, only date or only time depending on filter definition.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwDateComparator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matchBetween(OwSearchCriteria filter,
Date value)
Between value compare, where both limits must be include
for comparison. Neither the minimum limit nor the maximum
limit should be excluded.
|
protected boolean |
matchEquals(OwSearchCriteria filter,
Date value)
Value and filter value must be equal! But equal operation is
depending on the type and restriction of the given value.
|
protected boolean |
matchGreater(OwSearchCriteria filter,
Date value)
Value restriction where it must be greater as the filter.
|
protected boolean |
matchGreaterEquals(OwSearchCriteria filter,
Date value)
Greater or equals compare of given value and filter.
|
protected boolean |
matchLess(OwSearchCriteria filter,
Date value)
Value must be less than the defined filter.
|
protected boolean |
matchLessEquals(OwSearchCriteria filter,
Date value)
Less or equals compare of the value and filter.
|
protected boolean |
matchLike(OwSearchCriteria filter,
Date value)
A like compare of the value, the filter criteria
can be used to get the representation of wildcard characters.
|
matchprotected boolean matchBetween(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchBetween in class OwAbstractComparator<Date>filter - OwSearchCriteria providing the limit(s)value - T to match with criteriaprotected boolean matchLessEquals(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchLessEquals in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterprotected boolean matchGreaterEquals(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchGreaterEquals in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterprotected boolean matchLess(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchLess in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterprotected boolean matchGreater(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchGreater in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterprotected boolean matchLike(OwSearchCriteria filter, Date value)
OwAbstractComparatormatchLike in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterprotected boolean matchEquals(OwSearchCriteria filter, Date value)
OwAbstractComparatorFor special cases (Date, Number,...) an equal compare will still return true even if the filter and given value not match fully each other .
matchEquals in class OwAbstractComparator<Date>filter - OwSearchCriteria to restrict valuevalue - T to match against filterCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.