public class PropertyFilter extends Object implements Filter
Comparators,
Filter| Constructor and Description |
|---|
PropertyFilter(Class<?> type,
String property,
Comparators comparator,
Object value)
Creates a new instance of the class using the specified property name,
comparator and value.
|
PropertyFilter(String property,
Comparators comparator)
Creates a new instance of the class using the specified property name,
comparator and value.
|
PropertyFilter(String property,
Comparators comparator,
Object value)
Creates a new instance of the class using the specified property name,
comparator and value.
|
PropertyFilter(String property,
Object value)
Creates a new instance of the class using the specified property name and
value.
|
| Modifier and Type | Method and Description |
|---|---|
Comparators |
getComparator()
Gets the comparator.
|
Set<String> |
getProperties()
Gets the set of properties in this filter statement.
|
String |
getProperty()
Gets the property name.
|
Class<?> |
getType() |
Object |
getValue()
Gets the value used for comparison.
|
void |
setComparator(Comparators value)
Sets the comparator.
|
void |
setProperty(String value)
Sets the property name.
|
void |
setValue(Object value)
Sets the value used for comparison.
|
String |
toQueryString()
Translates this filter to its SQL query equivalent.
|
String |
toString() |
public PropertyFilter(Class<?> type, String property, Comparators comparator, Object value)
type - The type corresponding to the property (may be null)property - The name of the property.comparator - The comparator used.value - The value to compare with.public PropertyFilter(String property, Comparators comparator)
property - The name of the property.comparator - The comparator used.public PropertyFilter(String property, Comparators comparator, Object value)
property - The name of the property.comparator - The comparator used.value - The value to compare with.public Class<?> getType()
public String getProperty()
public void setProperty(String value)
value - the property name.public Comparators getComparator()
public void setComparator(Comparators value)
value - the comparator.public Object getValue()
public void setValue(Object value)
value - the value used for comparison.public String toQueryString()
FiltertoQueryString in interface Filterpublic Set<String> getProperties()
FiltergetProperties in interface FilterCopyright © 2013. All rights reserved.