|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FilterMethod> com.bea.p13n.pagination.FilterMethod
public enum FilterMethod
Filter method used by FilterablePagedResult. There are many things you might think of which are not expressed here, however most of them probably have another way to be used. For example, we could have chosen to expose dozens of filter methods which apply only to Date-type date - such as MONTH_EQUALS, MONTH_NOT_EQUALS, YEAR_EQUALS, YEAR_GREATER_THAN, etc. But instead, we have kept the methods to the most basic set which can be applied to strings and numbers.
For example, if you have a Date type, and want to support filtering such as "where the year is greater than x", then consider exposing the year as a numeric property (rather than just the date as a string).
If you want to support case-insensitive filtering of string properties, consider exposing these as special versions of some properties: i.e. FIRST_NAME and FIRST_NAME_IGNORING_CASE.
Another option might be to provide the base refilter method which has some default behavior, and adding a special "refilterIgnoringCase" method, or adding a "dateGranularity" parameter to an overloaded refilter method.
Or, you may have such specific needs that it will make more sense to return non-filterable PagedResults from various custom query or search methods.
The exact choice will depend on the details of the underlying system as well as the intended use of the PagedResult.
FilterablePagedResult
Enum Constant Summary | |
---|---|
BEGINS_WITH
Results which begin with the filter string. |
|
CONTAINS
Results which contain the filter string. |
|
CUSTOM
Results which match in some implementation-specific way. |
|
ENDS_WITH
Results which end with the filter string. |
|
EQUALS
Results which are equal to the filter string. |
|
GREATER_THAN
Results which are greater than the filter string value. |
|
LESS_THAN
Results which are less than the filter string value. |
|
NOT_CONTAINS
Opposite of CONTAINS |
|
NOT_EQUALS
Opposite of EQUALS |
|
UNFILTERED
Indicates that the result is not filtered |
Method Summary | |
---|---|
static FilterMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FilterMethod[] |
values()
Returns an array containing the constants of this enum type, in the order theyre declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FilterMethod UNFILTERED
public static final FilterMethod EQUALS
public static final FilterMethod NOT_EQUALS
public static final FilterMethod CONTAINS
public static final FilterMethod NOT_CONTAINS
public static final FilterMethod BEGINS_WITH
public static final FilterMethod ENDS_WITH
public static final FilterMethod LESS_THAN
public static final FilterMethod GREATER_THAN
public static final FilterMethod CUSTOM
Method Detail |
---|
public static final FilterMethod[] values()
public static FilterMethod valueOf(String name)
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |