com.sleepycat.db.internal
Class DbTxn

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

public class DbTxn
extends java.lang.Object


Field Summary
 byte[] commitToken
           
protected  boolean swigCMemOwn
           
 
Constructor Summary
protected DbTxn(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void abort()
           
 void commit(int flags)
           
 void discard(int flags)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String get_name()
           
 int get_priority()
           
protected static long getCPtr(DbTxn obj)
           
 int hashCode()
           
 int id()
           
 void prepare(byte[] gid)
           
 void set_name(java.lang.String name)
           
 void set_priority(int priority)
           
 void set_timeout(long timeout, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn

commitToken

public byte[] commitToken
Constructor Detail

DbTxn

protected DbTxn(long cPtr,
                boolean cMemoryOwn)
Method Detail

getCPtr

protected static long getCPtr(DbTxn obj)

abort

public void abort()
           throws DatabaseException
Throws:
DatabaseException

commit

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

discard

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

get_name

public java.lang.String get_name()
                          throws DatabaseException
Throws:
DatabaseException

get_priority

public int get_priority()
                 throws DatabaseException
Throws:
DatabaseException

id

public int id()
       throws DatabaseException
Throws:
DatabaseException

prepare

public void prepare(byte[] gid)
             throws DatabaseException
Throws:
DatabaseException

set_timeout

public void set_timeout(long timeout,
                        int flags)
                 throws DatabaseException
Throws:
DatabaseException

set_name

public void set_name(java.lang.String name)
              throws DatabaseException
Throws:
DatabaseException

set_priority

public void set_priority(int priority)
                  throws DatabaseException
Throws:
DatabaseException