public static class SelectFilter.Filter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DATA_TYPE_DATE
Filtering a date.
|
static int |
DATA_TYPE_NUMBER
Filtering a number.
|
static int |
DATA_TYPE_STRING
Filtering a string.
|
static int |
OP_BEGIN_WITH
starts with (text only)
|
static int |
OP_CONTAINS
contains (text only)
|
static int |
OP_END_WITH
ends with (text only)
|
static int |
OP_EQUALS
equal
|
static int |
OP_GREATER_THAN
greater than (SQL: date/number only, XML: number only)
|
static int |
OP_GREATER_THAN_OR_EQUAL
greater than or equal (SQL: date/number only, XML: number only)
|
static int |
OP_LESS_THAN
less than (SQL: date/number only, XML: number only)
|
static int |
OP_LESS_THAN_OR_EQUAL
less than or equals (SQL: date/number only, XML: number only)
|
static int |
OP_LIKE
like (no wildcards added, but existing ones respected)
|
static int |
OP_NONE
no op
|
static int |
OP_NOT_BEGIN_WITH
does not start with (text only)
|
static int |
OP_NOT_CONTAINS
does not contain (text only)
|
static int |
OP_NOT_END_WITH
does not end with (text only)
|
static int |
OP_NOT_EQUALS
not equal
|
static int |
OP_NOT_LIKE
not like (no wildcards added, but existing ones respected)
|
Constructor and Description |
---|
Filter(java.lang.String fieldName,
int opCode,
java.util.Date value)
A date filter for the select.
|
Filter(java.lang.String fieldName,
int opCode,
java.lang.Number value)
A number filter for the select.
|
Filter(java.lang.String fieldName,
int opCode,
java.lang.Object value)
A filter for the select.
|
Filter(java.lang.String fieldName,
int opCode,
java.lang.String value)
A string filter for the select.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName()
The column (SQL) or node (XML) to compare on.
|
int |
getOpCode()
The OP_* to use.
|
java.lang.String |
getSqlOpCode()
The opcode as SQL will use it.
|
java.lang.Object |
getSqlValue()
The value for the filter.
|
java.lang.Object |
getValue()
The value for the filter.
|
java.util.Date |
getValueAsDate()
The date value for the filter.
|
java.lang.Number |
getValueAsNumber()
The number value for the filter.
|
java.lang.String |
getValueAsString()
The string value for the filter.
|
java.lang.String |
getXpathOpCode()
The opcode as XPath will use it.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public static final int OP_NONE
public static final int OP_EQUALS
public static final int OP_NOT_EQUALS
public static final int OP_GREATER_THAN
public static final int OP_GREATER_THAN_OR_EQUAL
public static final int OP_LESS_THAN
public static final int OP_LESS_THAN_OR_EQUAL
public static final int OP_BEGIN_WITH
public static final int OP_NOT_BEGIN_WITH
public static final int OP_END_WITH
public static final int OP_NOT_END_WITH
public static final int OP_CONTAINS
public static final int OP_NOT_CONTAINS
public static final int OP_LIKE
public static final int OP_NOT_LIKE
public static final int DATA_TYPE_STRING
public static final int DATA_TYPE_NUMBER
public static final int DATA_TYPE_DATE
public Filter(java.lang.String fieldName, int opCode, java.lang.Object value)
fieldName
- The column (SQL) or node (XML) to compare on. If you are using aliases (SQL), this must use the alias.opCode
- The OP_* to use.value
- The value for the filter.public Filter(java.lang.String fieldName, int opCode, java.lang.String value)
fieldName
- The column (SQL) or node (XML) to compare on. If you are using aliases (SQL), this must use the alias.opCode
- The OP_* to use.value
- The value for the filter.public Filter(java.lang.String fieldName, int opCode, java.lang.Number value)
fieldName
- The column (SQL) or node (XML) to compare on. If you are using aliases (SQL), this must use the alias.opCode
- The OP_* to use.value
- The value for the filter.public Filter(java.lang.String fieldName, int opCode, java.util.Date value)
fieldName
- The column (SQL) or node (XML) to compare on. If you are using aliases (SQL), this must use the alias.opCode
- The OP_* to use.value
- The value for the filter.public java.lang.String getFieldName()
public int getOpCode()
public java.lang.String getSqlOpCode()
public java.lang.String getXpathOpCode()
public java.lang.Object getSqlValue()
public java.lang.Object getValue()
public java.lang.String getValueAsString()
public java.lang.Number getValueAsNumber()
public java.util.Date getValueAsDate()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software