com.sleepycat.db.internal
Class DbSequence

java.lang.Object
  extended by com.sleepycat.db.internal.DbSequence

public class DbSequence
extends java.lang.Object


Field Summary
protected  boolean swigCMemOwn
           
 Sequence wrapper
           
 
Constructor Summary
  DbSequence(Db db, int flags)
           
protected DbSequence(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void close(int flags)
           
 int get_cachesize()
           
 Db get_db()
           
 int get_flags()
           
 void get_key(DatabaseEntry key)
           
 long get_range_max()
           
 long get_range_min()
           
 long get(DbTxn txnid, int delta, int flags)
           
protected static long getCPtr(DbSequence obj)
           
 void initial_value(long val)
           
 void open(DbTxn txnid, DatabaseEntry key, int flags)
           
 void remove(DbTxn txn, int flags)
           
 void set_cachesize(int size)
           
 void set_flags(int flags)
           
 void set_range(long min, long max)
           
 SequenceStats stat(int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn

wrapper

public Sequence wrapper
Constructor Detail

DbSequence

protected DbSequence(long cPtr,
                     boolean cMemoryOwn)

DbSequence

public DbSequence(Db db,
                  int flags)
           throws DatabaseException
Throws:
DatabaseException
Method Detail

getCPtr

protected static long getCPtr(DbSequence obj)

close

public void close(int flags)
           throws DatabaseException
Throws:
DatabaseException

remove

public void remove(DbTxn txn,
                   int flags)
            throws DatabaseException
Throws:
DatabaseException

get

public long get(DbTxn txnid,
                int delta,
                int flags)
         throws DatabaseException
Throws:
DatabaseException

get_cachesize

public int get_cachesize()
                  throws DatabaseException
Throws:
DatabaseException

get_db

public Db get_db()
          throws DatabaseException
Throws:
DatabaseException

get_flags

public int get_flags()
              throws DatabaseException
Throws:
DatabaseException

get_key

public void get_key(DatabaseEntry key)
             throws DatabaseException
Throws:
DatabaseException

get_range_min

public long get_range_min()
                   throws DatabaseException
Throws:
DatabaseException

get_range_max

public long get_range_max()
                   throws DatabaseException
Throws:
DatabaseException

initial_value

public void initial_value(long val)
                   throws DatabaseException
Throws:
DatabaseException

open

public void open(DbTxn txnid,
                 DatabaseEntry key,
                 int flags)
          throws DatabaseException
Throws:
DatabaseException

set_cachesize

public void set_cachesize(int size)
                   throws DatabaseException
Throws:
DatabaseException

set_flags

public void set_flags(int flags)
               throws DatabaseException
Throws:
DatabaseException

set_range

public void set_range(long min,
                      long max)
               throws DatabaseException
Throws:
DatabaseException

stat

public SequenceStats stat(int flags)
                   throws DatabaseException
Throws:
DatabaseException