com.sleepycat.je.dbi
Enum CursorImpl.SearchMode

java.lang.Object
  extended by java.lang.Enum<CursorImpl.SearchMode>
      extended by com.sleepycat.je.dbi.CursorImpl.SearchMode
All Implemented Interfaces:
Serializable, Comparable<CursorImpl.SearchMode>
Enclosing class:
CursorImpl

public static enum CursorImpl.SearchMode
extends Enum<CursorImpl.SearchMode>


Enum Constant Summary
BOTH
           
BOTH_RANGE
           
SET
           
SET_RANGE
           
 
Method Summary
 boolean isDataSearch()
          Returns true when the data value is included in the search, i.e., for BOTH and BOTH_RANGE.
 boolean isExactSearch()
          Returns true when the key or key/data search is exact, i.e., for SET and BOTH.
 String toString()
           
static CursorImpl.SearchMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CursorImpl.SearchMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SET

public static final CursorImpl.SearchMode SET

BOTH

public static final CursorImpl.SearchMode BOTH

SET_RANGE

public static final CursorImpl.SearchMode SET_RANGE

BOTH_RANGE

public static final CursorImpl.SearchMode BOTH_RANGE
Method Detail

values

public static CursorImpl.SearchMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CursorImpl.SearchMode c : CursorImpl.SearchMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CursorImpl.SearchMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isExactSearch

public final boolean isExactSearch()
Returns true when the key or key/data search is exact, i.e., for SET and BOTH.


isDataSearch

public final boolean isDataSearch()
Returns true when the data value is included in the search, i.e., for BOTH and BOTH_RANGE.


toString

public String toString()
Overrides:
toString in class Enum<CursorImpl.SearchMode>


Copyright (c) 2004-2012 Oracle. All rights reserved.