public class SearchParameter extends Object implements Serializable
PropertySearch
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
EMPTY_COMPARATOR
14
|
static int |
EQUAL_COMPARATOR
2
|
static int |
GREATER_THAN_COMPARATOR
4
|
static int |
GREATER_THAN_OR_EQUAL_COMPARATOR
3
|
static int |
IN_COMPARATOR
7
|
static int |
INSENSITIVE_LIKE_COMPARATOR
1
|
static int |
LESS_THAN_COMPARATOR
6
|
static int |
LESS_THAN_OR_EQUAL_COMPARATOR
5
|
static int |
LIKE_COMPARATOR
0
|
static int |
MATCH_ANYWHERE
0
|
static int |
MATCH_END
2
|
static int |
MATCH_EXACT
3
|
static int |
MATCH_START
1
|
static int |
NOT_EMPTY_COMPARATOR
15
|
static int |
NOT_EQUAL_COMPARATOR
8
|
static int |
NOT_IN_COMPARATOR
11
|
static int |
NOT_INSENSITIVE_LIKE_COMPARATOR
13
|
static int |
NOT_LIKE_COMPARATOR
12
|
static int |
NOT_NULL_COMPARATOR
9
|
static int |
NULL_COMPARATOR
10
|
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 nameIn,
int comparatorIn)
Constructor taking name and comparator properties.
|
SearchParameter(String nameIn,
Object valueIn)
Constructor taking name and value properties.
|
SearchParameter(String nameIn,
Object valueIn,
int comparatorIn)
Constructor taking name, value and comparator properties.
|
SearchParameter(String nameIn,
Object valueIn,
int comparatorIn,
int matchIn)
Constructor taking name, value, comparator and order properties.
|
SearchParameter(String nameIn,
Object valueIn,
int comparatorIn,
int matchIn,
int orderIn)
Constructor taking name, value, comparator, order and match properties.
|
SearchParameter(String nameIn,
Object valueIn,
int comparatorIn,
int matchIn,
int orderIn,
boolean searchIfNullIn)
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. person.firstNAme).
|
int |
getOrder()
Order attribute to control if parameter is used in 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 comparatorIn) |
void |
setMatch(int matchIn)
Sets the match mode attribute which controls how parameter values are matched (anywhere, start, end or exact).
|
void |
setName(String nameIn) |
void |
setOrder(int orderIn) |
void |
setSearchIfNull(boolean searchIfNullIn)
Defines whether parameter will be included in the search even if it is
null . |
void |
setValue(Object valueIn) |
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 EMPTY_COMPARATOR
public static final int NOT_EMPTY_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 nameIn, Object valueIn)
nameIn
- valueIn
- public SearchParameter(String nameIn, int comparatorIn)
nameIn
- comparatorIn
- public SearchParameter(String nameIn, Object valueIn, int comparatorIn)
nameIn
- valueIn
- comparatorIn
- public SearchParameter(String nameIn, Object valueIn, int comparatorIn, int matchIn)
nameIn
- valueIn
- comparatorIn
- matchIn
- public SearchParameter(String nameIn, Object valueIn, int comparatorIn, int matchIn, int orderIn)
nameIn
- valueIn
- comparatorIn
- matchIn
- orderIn
- public SearchParameter(String nameIn, Object valueIn, int comparatorIn, int matchIn, int orderIn, boolean searchIfNullIn)
nameIn
- valueIn
- comparatorIn
- matchIn
- orderIn
- searchIfNullIn
- public SearchParameter(SearchParameter otherBean)
otherBean
- public String getName()
public int getComparator()
public void setComparator(int comparatorIn)
comparatorIn
- public int getOrder()
public void setOrder(int orderIn)
orderIn
- public boolean isSearchIfNull()
null
.public void setSearchIfNull(boolean searchIfNullIn)
null
.searchIfNullIn
- true
if the parameter should be included in the search
even if it is null, false
otherwise.public int getMatch()
public void setMatch(int matchIn)
matchIn
- the match modeCopyright © 2012–2014 IFREMER. All rights reserved.