public class ExampleOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ANYWHERE |
static int |
END |
static int |
EXACT |
static int |
START |
Constructor and Description |
---|
ExampleOptions() |
Modifier and Type | Method and Description |
---|---|
ExampleOptions |
excludeProp(java.lang.String property)
Add a property to the excludeProps collection
|
java.util.Collection<java.lang.String> |
getExcludeProps() |
int |
getLikeMode() |
boolean |
isExcludeNulls() |
boolean |
isExcludeZeros() |
boolean |
isIgnoreCase() |
ExampleOptions |
setExcludeNulls(boolean excludeNulls)
If this is true, all properties with
null values will be ignored. |
ExampleOptions |
setExcludeProps(java.util.Collection<java.lang.String> excludeProps)
This is a list of properties to exclude.
|
ExampleOptions |
setExcludeZeros(boolean excludeZeros)
If this is true, all properties with the value
0 will be ignored. |
ExampleOptions |
setIgnoreCase(boolean ignoreCase)
If this is true, case is ignored when comparing string values.
|
ExampleOptions |
setLikeMode(int likeMode)
This options describes how all string values are compared.
|
public static final int EXACT
public static final int START
public static final int END
public static final int ANYWHERE
public ExampleOptions excludeProp(java.lang.String property)
public java.util.Collection<java.lang.String> getExcludeProps()
public ExampleOptions setExcludeProps(java.util.Collection<java.lang.String> excludeProps)
This is a list of properties to exclude. For example if a person object is as an example and it is not desirable to filter on the person's parents, the mother and father properties can be excluded by setting this list to contain the strings "mother" and "father".
Default: <none>
public boolean isExcludeNulls()
public ExampleOptions setExcludeNulls(boolean excludeNulls)
If this is true, all properties with null
values will be ignored.
Default: true
public boolean isExcludeZeros()
public ExampleOptions setExcludeZeros(boolean excludeZeros)
If this is true, all properties with the value 0
will be ignored.
Default: false
public boolean isIgnoreCase()
public ExampleOptions setIgnoreCase(boolean ignoreCase)
If this is true, case is ignored when comparing string values.
Default: true
public int getLikeMode()
public ExampleOptions setLikeMode(int likeMode)
This options describes how all string values are compared. The options are:
Default: EXACT