public class ColumnFilter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
CHILDOF |
static int |
EQUALS |
static int |
GREATER |
static int |
LESS |
static int |
LIKE |
static int |
OR |
static int |
RANGE |
static int |
SET |
Constructor and Description |
---|
ColumnFilter()
Create filter of type SET
|
ColumnFilter(int type,
long value)
Create filter of type EQUALS, LESS, GREATER, or CHILDOF
|
ColumnFilter(long rangeFrom,
long rangeTo)
Create filter of type RANGE
|
ColumnFilter(String value)
Create filter of type LIKE
|
Modifier and Type | Method and Description |
---|---|
void |
addSubFilter(ColumnFilter filter)
Add new element to SET type filter
|
String |
getLike() |
long |
getNumericValue() |
int |
getOperation() |
long |
getRangeFrom() |
long |
getRangeTo() |
Set<ColumnFilter> |
getSubFilters()
Get sub-filters.
|
int |
getType() |
boolean |
isNegated() |
void |
setLike(String like) |
void |
setNegated(boolean negated) |
void |
setNumericValue(long numericValue) |
void |
setOperation(int operation) |
void |
setRangeFrom(long rangeFrom) |
void |
setRangeTo(long rangeTo) |
public static final int EQUALS
public static final int RANGE
public static final int SET
public static final int LIKE
public static final int LESS
public static final int GREATER
public static final int CHILDOF
public static final int AND
public static final int OR
public ColumnFilter(int type, long value)
value
- public ColumnFilter(long rangeFrom, long rangeTo)
rangeFrom
- rangeTo
- public ColumnFilter(String value)
value
- public ColumnFilter()
public void addSubFilter(ColumnFilter filter)
filter
- public long getRangeFrom()
public void setRangeFrom(long rangeFrom)
rangeFrom
- the rangeFrom to setpublic long getRangeTo()
public void setRangeTo(long rangeTo)
rangeTo
- the rangeTo to setpublic long getNumericValue()
public void setNumericValue(long numericValue)
equalsTo
- the equalsTo to setpublic String getLike()
public void setLike(String like)
like
- the like to setpublic int getOperation()
public void setOperation(int operation)
operation
- the operation to setpublic int getType()
public Set<ColumnFilter> getSubFilters()
public boolean isNegated()
public void setNegated(boolean negated)
negated
- the negated to setCopyright © 2016. All rights reserved.