public class SearchParameter extends Object implements Serializable
PropertySearch,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
EQUAL_COMPARATOR |
static int |
GREATER_THAN_COMPARATOR |
static int |
GREATER_THAN_OR_EQUAL_COMPARATOR |
static int |
IN_COMPARATOR |
static int |
INSENSITIVE_LIKE_COMPARATOR |
static int |
LESS_THAN_COMPARATOR |
static int |
LESS_THAN_OR_EQUAL_COMPARATOR |
static int |
LIKE_COMPARATOR |
static int |
MATCH_ANYWHERE |
static int |
MATCH_END |
static int |
MATCH_EXACT |
static int |
MATCH_START |
static int |
NOT_EQUAL_COMPARATOR |
static int |
NOT_IN_COMPARATOR |
static int |
NOT_INSENSITIVE_LIKE_COMPARATOR |
static int |
NOT_LIKE_COMPARATOR |
static int |
NOT_NULL_COMPARATOR |
static int |
NULL_COMPARATOR |
static int |
ORDER_ASC
Ascending order
|
static int |
ORDER_DESC
Descending order
|
static int |
ORDER_UNSET
Order unset
|
| Constructor and Description |
|---|
SearchParameter(SearchParameter otherBean)
Copies constructor from other SearchParameter
|
SearchParameter(String name,
int comparator)
Constructor taking name and comparator properties.
|
SearchParameter(String name,
Object value)
Constructor taking name and value properties.
|
SearchParameter(String name,
Object value,
int comparator)
Constructor taking name, value and comparator properties.
|
SearchParameter(String name,
Object value,
int comparator,
int match)
Constructor taking name, value, comparator and order properties.
|
SearchParameter(String name,
Object value,
int comparator,
int match,
int order)
Constructor taking name, value, comparator, order and match properties.
|
SearchParameter(String name,
Object value,
int comparator,
int match,
int order,
boolean searchIfNull)
Constructor taking all properties.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getComparator() |
int |
getMatch()
Gets the match attribute which controls how parameter values are matched (anywhere, start, end or exact).
|
String |
getName()
The parameter name in dot notation (i.e.
|
int |
getOrder()
Order attribute to control if parameter is usedin order by
clause.
|
Object |
getValue()
The value of the parameter.
|
boolean |
isSearchIfNull()
Whether this parameter will be included in the search even if it is
null. |
void |
setComparator(int comparator) |
void |
setMatch(int match)
Sets the match mode attribute which controls how parameter values are matched (anywhere, start, end or exact).
|
void |
setName(String name) |
void |
setOrder(int order) |
void |
setSearchIfNull(boolean searchIfNull)
Defines whether parameter will be included in the search even if it is
null. |
void |
setValue(Object value) |
public static final int LIKE_COMPARATOR
public static final int INSENSITIVE_LIKE_COMPARATOR
public static final int EQUAL_COMPARATOR
public static final int GREATER_THAN_OR_EQUAL_COMPARATOR
public static final int GREATER_THAN_COMPARATOR
public static final int LESS_THAN_OR_EQUAL_COMPARATOR
public static final int LESS_THAN_COMPARATOR
public static final int IN_COMPARATOR
public static final int NOT_EQUAL_COMPARATOR
public static final int NOT_NULL_COMPARATOR
public static final int NULL_COMPARATOR
public static final int NOT_IN_COMPARATOR
public static final int NOT_LIKE_COMPARATOR
public static final int NOT_INSENSITIVE_LIKE_COMPARATOR
public static final int ORDER_UNSET
public static final int ORDER_ASC
public static final int ORDER_DESC
public static final int MATCH_ANYWHERE
public static final int MATCH_START
public static final int MATCH_END
public static final int MATCH_EXACT
public SearchParameter(String name, Object value)
public SearchParameter(String name, int comparator)
public SearchParameter(String name, Object value, int comparator)
public SearchParameter(String name, Object value, int comparator, int match)
public SearchParameter(String name, Object value, int comparator, int match, int order)
public SearchParameter(String name, Object value, int comparator, int match, int order, boolean searchIfNull)
public SearchParameter(SearchParameter otherBean)
public String getName()
The parameter name in dot notation (i.e. person.firstNAme).
public void setName(String name)
public Object getValue()
public void setValue(Object value)
public int getComparator()
public void setComparator(int comparator)
public int getOrder()
Order attribute to control if parameter is usedin order by clause.
public void setOrder(int order)
public boolean isSearchIfNull()
null.public void setSearchIfNull(boolean searchIfNull)
null.searchIfNull - true if the parameter should be included in the search
even if it is null, false otherwise.public int getMatch()
public void setMatch(int match)
Copyright © 2013. All Rights Reserved.