Package rasj.odmg
Class RasTransaction
- java.lang.Object
-
- rasj.odmg.RasTransaction
-
- All Implemented Interfaces:
Transaction
public class RasTransaction extends java.lang.Object implements Transaction
This class implements the ODMG Transaction interface.- Author:
- Peter Zoller
-
-
Field Summary
-
Fields inherited from interface org.odmg.Transaction
READ, UPGRADE, WRITE
-
-
Constructor Summary
Constructors Constructor Description RasTransaction(RasImplementationInterface imp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()Abort a transaction.voidbegin()Begin a transaction.voidcheckpoint()Not implemented yet.voidcommit()Commit a transaction.java.lang.StringgetErrorStatus()Returns the errorStatus.booleanisOpen()Returns TRUE if a transaction is currently open.booleanisOpenLocally()Returns TRUE if a transaction is supposed to be open as seen from client side.voidjoin()Not implemented yet.voidleave()Not implemented yet.voidlock(java.lang.Object obj, int mode)Not implemented yet.booleantryLock(java.lang.Object obj, int mode)Not implemented yet.
-
-
-
Constructor Detail
-
RasTransaction
public RasTransaction(RasImplementationInterface imp)
-
-
Method Detail
-
join
public void join()
Not implemented yet.- Specified by:
joinin interfaceTransaction
-
leave
public void leave()
Not implemented yet.- Specified by:
leavein interfaceTransaction
-
begin
public void begin()
Begin a transaction.- Specified by:
beginin interfaceTransaction
-
isOpen
public boolean isOpen()
Returns TRUE if a transaction is currently open.- Specified by:
isOpenin interfaceTransaction- 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:
commitin interfaceTransaction
-
abort
public void abort()
Abort a transaction.- Specified by:
abortin interfaceTransaction
-
checkpoint
public void checkpoint()
Not implemented yet.- Specified by:
checkpointin interfaceTransaction
-
lock
public void lock(java.lang.Object obj, int mode) throws LockNotGrantedExceptionNot implemented yet.- Specified by:
lockin interfaceTransaction- Parameters:
obj- The object to acquire a lock on.mode- The lock mode to acquire. The lock modes areREAD,UPGRADE, andWRITE.- 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:
tryLockin interfaceTransaction- Parameters:
obj- The object to acquire a lock on.mode- The lock mode to acquire. The lock modes areREAD,UPGRADE, andWRITE.- Returns:
- True if the lock has been acquired, otherwise false.
-
getErrorStatus
public java.lang.String getErrorStatus()
Returns the errorStatus.
-
-