Package rasj.odmg

Class RasTransaction

  • All Implemented Interfaces:
    Transaction

    public class RasTransaction
    extends java.lang.Object
    implements Transaction
    This class implements the ODMG Transaction interface.
    Author:
    Peter Zoller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort()
      Abort a transaction.
      void begin()
      Begin a transaction.
      void checkpoint()
      Not implemented yet.
      void commit()
      Commit a transaction.
      java.lang.String getErrorStatus()
      Returns the errorStatus.
      boolean isOpen()
      Returns TRUE if a transaction is currently open.
      boolean isOpenLocally()
      Returns TRUE if a transaction is supposed to be open as seen from client side.
      void join()
      Not implemented yet.
      void leave()
      Not implemented yet.
      void lock​(java.lang.Object obj, int mode)
      Not implemented yet.
      boolean tryLock​(java.lang.Object obj, int mode)
      Not implemented yet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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​(java.lang.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​(java.lang.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 java.lang.String getErrorStatus()
        Returns the errorStatus.