Package rasj.odmg

Class RasTransaction

java.lang.Object
rasj.odmg.RasTransaction
All Implemented Interfaces:
Transaction

public class RasTransaction extends Object implements Transaction
This class implements the ODMG Transaction interface.
Author:
Peter Zoller
  • Constructor Details

  • Method Details

    • join

      public void join()
      Not implemented yet.
      Specified by:
      join in interface Transaction
    • leave

      public void leave()
      Not implemented yet.
      Specified by:
      leave in interface Transaction
    • begin

      public void begin()
      Begin a transaction.
      Specified by:
      begin in interface Transaction
    • isOpen

      public boolean isOpen()
      Returns TRUE if a transaction is currently open.
      Specified by:
      isOpen in interface Transaction
      Returns:
      True if the transaction is open, otherwise false.
    • isOpenLocally

      public boolean isOpenLocally()
      Returns TRUE if a transaction is supposed to be open as seen from client side. This is an optimization to save one server call within query execution, it is NOT an official interface method.
    • commit

      public void commit()
      Commit a transaction.
      Specified by:
      commit in interface Transaction
    • abort

      public void abort()
      Abort a transaction.
      Specified by:
      abort in interface Transaction
    • checkpoint

      public void checkpoint()
      Not implemented yet.
      Specified by:
      checkpoint in interface Transaction
    • lock

      public void lock(Object obj, int mode) throws LockNotGrantedException
      Not implemented yet.
      Specified by:
      lock in interface Transaction
      Parameters:
      obj - The object to acquire a lock on.
      mode - The lock mode to acquire. The lock modes are READ, UPGRADE, and WRITE.
      Throws:
      LockNotGrantedException - Is thrown if the given lock mode could not be acquired.
    • tryLock

      public boolean tryLock(Object obj, int mode)
      Not implemented yet.
      Specified by:
      tryLock in interface Transaction
      Parameters:
      obj - The object to acquire a lock on.
      mode - The lock mode to acquire. The lock modes are READ, UPGRADE, and WRITE.
      Returns:
      True if the lock has been acquired, otherwise false.
    • getErrorStatus

      public String getErrorStatus()
      Returns the errorStatus.