com.sleepycat.je.dbi
Enum GetMode

java.lang.Object
  extended by java.lang.Enum<GetMode>
      extended by 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.


Enum Constant Summary
NEXT
           
NEXT_DUP
           
NEXT_NODUP
           
PREV
           
PREV_DUP
           
PREV_NODUP
           
 
Method Summary
 boolean isForward()
           
 String toString()
           
static GetMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GetMode[] 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

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
Method Detail

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.