com.sleepycat.je
Class Transaction

java.lang.Object
  extended by com.sleepycat.je.Transaction

public class Transaction
extends Object

Javadoc for this public class is generated via the doc templates in the doc_src directory.


Constructor Summary
Transaction(Environment env, Txn txn)
          Creates a transaction.
 
Method Summary
 void abort()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void commit()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void commitNoSync()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void commitSync()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void commitWriteNoSync()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean equals(Object o)
           
 long getId()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  Locker getLocker()
          This method should only be called by the LockerFactory.getReadableLocker and getWritableLocker methods.
 String getName()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
(package private)  Txn getTxn()
           
 int hashCode()
           
 void setLockTimeout(long timeOut)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setName(String name)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setTxnTimeout(long timeOut)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transaction

Transaction(Environment env,
            Txn txn)
Creates a transaction.

Method Detail

abort

public void abort()
           throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

getId

public long getId()
           throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

commit

public void commit()
            throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

commitSync

public void commitSync()
                throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

commitNoSync

public void commitNoSync()
                  throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

commitWriteNoSync

public void commitWriteNoSync()
                       throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

setTxnTimeout

public void setTxnTimeout(long timeOut)
                   throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

setLockTimeout

public void setLockTimeout(long timeOut)
                    throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

setName

public void setName(String name)
Javadoc for this public method is generated via the doc templates in the doc_src directory.


getName

public String getName()
Javadoc for this public method is generated via the doc templates in the doc_src directory.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getLocker

Locker getLocker()
           throws DatabaseException
This method should only be called by the LockerFactory.getReadableLocker and getWritableLocker methods. The locker returned does not enforce the readCommitted isolation setting.

Throws:
DatabaseException

getTxn

Txn getTxn()


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.