1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.33
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.sleepycat.db.internal;
10
11import com.sleepycat.db.*;
12import java.util.Comparator;
13
14public class DbLogc {
15  private long swigCPtr;
16  protected boolean swigCMemOwn;
17
18  protected DbLogc(long cPtr, boolean cMemoryOwn) {
19    swigCMemOwn = cMemoryOwn;
20    swigCPtr = cPtr;
21  }
22
23  protected static long getCPtr(DbLogc obj) {
24    return (obj == null) ? 0 : obj.swigCPtr;
25  }
26
27  /* package */ synchronized void delete() {
28    if(swigCPtr != 0 && swigCMemOwn) {
29      swigCMemOwn = false;
30      throw new UnsupportedOperationException("C++ destructor does not have public access");
31    }
32    swigCPtr = 0;
33  }
34
35	public synchronized void close(int flags) throws DatabaseException {
36		try {
37			close0(flags);
38		} finally {
39			swigCPtr = 0;
40		}
41	}
42
43  /* package */ void close0(int flags) { db_javaJNI.DbLogc_close0(swigCPtr, this, flags); }
44
45  public int get(com.sleepycat.db.LogSequenceNumber lsn, com.sleepycat.db.DatabaseEntry data, int flags) throws com.sleepycat.db.DatabaseException {
46    return db_javaJNI.DbLogc_get(swigCPtr, this, lsn, data, flags);
47  }
48
49  public int version(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbLogc_version(swigCPtr, this, flags); }
50
51}
52