|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.fieldimpl.filter.OwAbstractComparator<Date>
com.wewebu.ow.server.fieldimpl.filter.OwDateComparator
public class OwDateComparator
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 Summary | |
---|---|
OwDateComparator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.wewebu.ow.server.fieldimpl.filter.OwAbstractComparator |
---|
match |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwDateComparator()
Method Detail |
---|
protected boolean matchBetween(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchBetween
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria providing the limit(s)value
- T to match with criteria
protected boolean matchLessEquals(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchLessEquals
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filter
protected boolean matchGreaterEquals(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchGreaterEquals
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filter
protected boolean matchLess(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchLess
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filter
protected boolean matchGreater(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchGreater
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filter
protected boolean matchLike(OwSearchCriteria filter, Date value)
OwAbstractComparator
matchLike
in class OwAbstractComparator<Date>
filter
- OwSearchCriteria to restrict valuevalue
- T to match against filter
protected boolean matchEquals(OwSearchCriteria filter, Date value)
OwAbstractComparator
For 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 filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |