|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectFilterTypeHint
public class FilterTypeHint
The FilterTypeHint is used by a Filter object in order to provide metadata about the type of
the data in a data set represented by a filter expression. When used on a Filter, infrastructure
used to build or perform querying using Filter instances can use type hints in order to build
or perform filtering correctly. For example, when using Filter instances with SQL, a type
hint can be used to know when to quote a value inside of a WHERE clause.
| Field Summary | |
|---|---|
static FilterTypeHint |
DATE
Filter type hint representing a date type. |
static FilterTypeHint |
NUMERIC
Filter type hint representing a numeric type. |
static FilterTypeHint |
STRING
Filter type hint representing a string type. |
| Method Summary | |
|---|---|
static FilterTypeHint |
getDefault()
Get the default filter type hint. |
String |
getHint()
Get the type hint string. |
static FilterTypeHint |
getTypeHint(String hint)
Given a String, lookup a FilterTypeHint for the String. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FilterTypeHint DATE
public static final FilterTypeHint STRING
public static final FilterTypeHint NUMERIC
| Method Detail |
|---|
public String getHint()
public static FilterTypeHint getDefault()
STRING.
public static FilterTypeHint getTypeHint(String hint)
hint - the String to use when looking up a filter type hint
IllegalArgumentException - if the given hint doesn't match a know type hint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||