1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
9
package com.sleepycat.db.internal;
12
import com.sleepycat.db.*;
13
import java.util.Comparator;
15
public class DbSequence {
16
private long swigCPtr;
17
protected boolean swigCMemOwn;
19
protected DbSequence(long cPtr, boolean cMemoryOwn) {
20
swigCMemOwn = cMemoryOwn;
24
protected DbSequence() {
28
/* package */ void delete() {
29
if(swigCPtr != 0 && swigCMemOwn) {
31
throw new UnsupportedOperationException("C++ destructor does not have public access");
36
protected static long getCPtr(DbSequence obj) {
37
return (obj == null) ? 0 : obj.swigCPtr;
40
public Sequence wrapper;
42
public synchronized void close(int flags) throws DatabaseException {
50
public synchronized void remove(DbTxn txn, int flags)
51
throws DatabaseException {
59
public DbSequence(Db db, int flags) throws com.sleepycat.db.DatabaseException {
60
this(db_javaJNI.new_DbSequence(Db.getCPtr(db), flags), true);
63
/* package */ void close0(int flags) { db_javaJNI.DbSequence_close0(swigCPtr, flags); }
65
public long get(DbTxn txnid, int delta, int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_get(swigCPtr, DbTxn.getCPtr(txnid), delta, flags); }
67
public int get_cachesize() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_get_cachesize(swigCPtr); }
69
public Db get_db() throws com.sleepycat.db.DatabaseException {
70
long cPtr = db_javaJNI.DbSequence_get_db(swigCPtr);
71
return (cPtr == 0) ? null : new Db(cPtr, false);
74
public int get_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_get_flags(swigCPtr); }
76
public void get_key(com.sleepycat.db.DatabaseEntry key) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_get_key(swigCPtr, key); }
78
public long get_range_min() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_get_range_min(swigCPtr); }
80
public long get_range_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_get_range_max(swigCPtr); }
82
public void initial_value(long val) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_initial_value(swigCPtr, val); }
84
public void open(DbTxn txnid, com.sleepycat.db.DatabaseEntry key, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_open(swigCPtr, DbTxn.getCPtr(txnid), key, flags); }
86
/* package */ void remove0(DbTxn txnid, int flags) { db_javaJNI.DbSequence_remove0(swigCPtr, DbTxn.getCPtr(txnid), flags); }
88
public void set_cachesize(int size) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_set_cachesize(swigCPtr, size); }
90
public void set_flags(int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_set_flags(swigCPtr, flags); }
92
public void set_range(long min, long max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbSequence_set_range(swigCPtr, min, max); }
94
public com.sleepycat.db.SequenceStats stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_stat(swigCPtr, flags); }