package com.sleepycat.je.dbi;
import de.ovgu.cide.jakutil.*;
/**
* Internal class used to distinguish which variety of getXXX() that
* Cursor.retrieveNext should use.
*/
public class GetMode {
private String name;
private boolean forward;
private GetMode( String name, boolean forward){
this.name=name;
this.forward=forward;
}
public static final GetMode NEXT=new GetMode("NEXT",true);
public static final GetMode PREV=new GetMode("PREV",false);
public static final GetMode NEXT_DUP=new GetMode("NEXT_DUP",true);
public static final GetMode PREV_DUP=new GetMode("PREV_DUP",false);
public static final GetMode NEXT_NODUP=new GetMode("NEXT_NODUP",true);
public static final GetMode PREV_NODUP=new GetMode("PREV_NODUP",false);
public final boolean isForward(){
return forward;
}
public String toString(){
return name;
}
}