Package net.anotheria.anodoc.query2
Class QueryMoreThenProperty<P extends java.lang.Comparable<P>>
- java.lang.Object
-
- net.anotheria.anodoc.query2.QueryProperty
-
- net.anotheria.anodoc.query2.QueryMoreThenProperty<P>
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryMoreThenProperty<P extends java.lang.Comparable<P>> extends QueryProperty
Presents the query of abstract DataObjects that have Property with given name and its value more then or equal (if including) to the querying value.- Version:
- $Id: $Id
- Author:
- denis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryMoreThenProperty(java.lang.String name, P value)Creates new more then query.QueryMoreThenProperty(java.lang.String name, P value, boolean including)Creates new more then or equal (if including) query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesMatch(java.lang.Object o)doesMatch.java.lang.StringgetComparator()Returns the comparator operation for this query.java.lang.StringtoString()-
Methods inherited from class net.anotheria.anodoc.query2.QueryProperty
getName, getOriginalValue, getValue, setName, setValue, unprepaireable
-
-
-
-
Constructor Detail
-
QueryMoreThenProperty
public QueryMoreThenProperty(java.lang.String name, P value)Creates new more then query.- Parameters:
name- of the Property for which query is createdvalue- minimal allowed value of queried Property
-
QueryMoreThenProperty
public QueryMoreThenProperty(java.lang.String name, P value, boolean including)Creates new more then or equal (if including) query.- Parameters:
name- of the Property for which query is createdvalue- minimal allowed value of queried Propertyincluding- the equal values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classQueryProperty
-
getComparator
public java.lang.String getComparator()
Returns the comparator operation for this query.- Overrides:
getComparatorin classQueryProperty- Returns:
- a
Stringobject.
-
doesMatch
public boolean doesMatch(java.lang.Object o)
doesMatch.
- Overrides:
doesMatchin classQueryProperty- Parameters:
o- aObjectobject.- Returns:
- a boolean.
-
-