com.sleepycat.je.dbi
Enum GetMode
java.lang.Object
java.lang.Enum<GetMode>
com.sleepycat.je.dbi.GetMode
- All Implemented Interfaces:
- Serializable, Comparable<GetMode>
public enum GetMode
- extends Enum<GetMode>
Internal class used to distinguish which variety of getXXX() that
Cursor.retrieveNext should use.
NEXT
public static final GetMode NEXT
PREV
public static final GetMode PREV
NEXT_DUP
public static final GetMode NEXT_DUP
PREV_DUP
public static final GetMode PREV_DUP
NEXT_NODUP
public static final GetMode NEXT_NODUP
PREV_NODUP
public static final GetMode PREV_NODUP
values
public static GetMode[] 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 (GetMode c : GetMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GetMode 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
isForward
public final boolean isForward()
toString
public String toString()
- Overrides:
toString
in class Enum<GetMode>
Copyright (c) 2004-2012 Oracle. All rights reserved.