public enum Find extends Enum<Find>
DominoCollection.getAllIdsByKey(Set, Object)
to control how the
collection is searched for the key. The flags, PARTIAL
, CASE_INSENSITIVE
,
and ACCENT_INSENSITIVE
should only be used for character data, since a
"partial number" or "partial date" is not well defined.LESS_THAN
and GREATER_THAN
flags refer to the way the sorted
column keys are ordered and displayed, not the way they compare with each
other. LESS_THAN
means "find the entry before" and GREATER_THAN
means "find the entry after" a desired key. The LESS_THAN
and
GREATER_THAN
flags will result in success if at least one key that
is less than or greater than the specified key, respectively, is found.FIRST_EQUAL
or LAST_EQUAL
comparison is specified and the
number of matches is requested to be returned, then the number of entries
which match the specified key will be returned. If a LESS_THAN
or
GREATER_THAN
comparison is specified, then the number of matching
entries cannot be requested.Enum Constant and Description |
---|
ACCENT_INSENSITIVE
Search disregards diacritical marks.
|
CASE_INSENSITIVE
Case insensitive ("tim" matches "Tim")
|
EQUAL
Qualifies LESS_THAN and GREATER_THAN to mean LESS_THAN_OR_EQUAL and GREATER_THAN_OR_EQUAL
|
FIRST_EQUAL
Find first entry equal to the key value (if more than one).
|
GREATER_THAN
Find first entry greater than the key value.
|
LAST_EQUAL
Find last entry equal to the key value (if more than one).
|
LESS_THAN
Find last entry less than the key value.
|
LIMIT_MATCHES
Limit number of matches returned
|
MATCH_CATEGORYANDLEAF
Search key is a category with leaf entry
so match the leaf as well (eg.
|
MATCH_CATEGORYORLEAF
Search key is a category only and if no match then match on the leaf.
|
MATCH_PRIVATE_ONLY
Return only entries which hNames would disallow (requires full access set)
|
PARTIAL
Match only the initial characters ("T" matches "Tim", "i" does
not match "Tim").
|
RANGE_OVERLAP
Overlapping ranges match, and values within a range match.
|
REFRESH_FIRST
If the collection needs it, call NIFUpdateCollection prior to find (NIFFindByKeyExtended2 only
|
UPDATE_IF_NOT_FOUND
If key is not found, update collection and search again
|
VIEW_SENSITIVE
Use the case and accent sensitivity flags specified in the view
|
Modifier and Type | Field and Description |
---|---|
static short |
FIND_COMPARE_MASK
Bitmask of the comparison flags defined above
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static short |
toBitMask(Set<Find> findSet) |
static int |
toBitMaskInt(Set<Find> findSet) |
static Find |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Find[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Find PARTIAL
public static final Find CASE_INSENSITIVE
public static final Find ACCENT_INSENSITIVE
public static final Find UPDATE_IF_NOT_FOUND
public static final Find LESS_THAN
public static final Find FIRST_EQUAL
public static final Find LAST_EQUAL
public static final Find GREATER_THAN
public static final Find EQUAL
public static final Find RANGE_OVERLAP
public static final Find VIEW_SENSITIVE
public static final Find LIMIT_MATCHES
public static final Find MATCH_CATEGORYANDLEAF
public static final Find MATCH_CATEGORYORLEAF
public static final Find MATCH_PRIVATE_ONLY
public static final Find REFRESH_FIRST
public static short FIND_COMPARE_MASK
public static Find[] values()
for (Find c : Find.values()) System.out.println(c);
public static Find valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2019–2021 HCL. All rights reserved.