com.sleepycat.db
Class DbLsn

java.lang.Object
  extended by com.sleepycat.db.DbLsn

public class DbLsn
extends java.lang.Object

The DbLsn object is a log sequence number which specifies a unique location in a log file. A DbLsn consists of two unsigned 32-bit integers -- one specifies the log file number, and the other specifies an offset in the log file.


Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
protected DbLsn()
           
  DbLsn(int file, int offset)
          The DbLsn constructor constructs a DbLsn with the specified file and offset.
protected DbLsn(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
protected  void finalize()
           
 int get_file()
          Deprecated. As of Berkeley DB 4.2, replaced by getFile()
 int get_offset()
          Deprecated. As of Berkeley DB 4.2, replaced by getOffset()
protected static long getCPtr(DbLsn obj)
           
 int getFile()
          The DbLsn.getFile method returns the DbLsn object's file number.
 int getOffset()
          The DbLsn.getOffset method returns the DbLsn object's file number.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

DbLsn

protected DbLsn(long cPtr,
                boolean cMemoryOwn)

DbLsn

protected DbLsn()

DbLsn

public DbLsn(int file,
             int offset)
      throws DbException
The DbLsn constructor constructs a DbLsn with the specified file and offset.

Parameters:
file - the log file number.
offset - the log file offset.
Throws:
DbException - Signals that an exception of some sort has occurred.
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getCPtr

protected static long getCPtr(DbLsn obj)

get_file

public int get_file()
             throws DbException
Deprecated. As of Berkeley DB 4.2, replaced by getFile()

Throws:
DbException

getFile

public int getFile()
            throws DbException
The DbLsn.getFile method returns the DbLsn object's file number.

Returns:
The DbLsn.getFile method returns the DbLsn object's file number.

Throws:
DbException - Signals that an exception of some sort has occurred.

get_offset

public int get_offset()
               throws DbException
Deprecated. As of Berkeley DB 4.2, replaced by getOffset()

Throws:
DbException

getOffset

public int getOffset()
              throws DbException
The DbLsn.getOffset method returns the DbLsn object's file number.

Returns:
The DbLsn.getOffset method returns the DbLsn object's file number.

Throws:
DbException - Signals that an exception of some sort has occurred.