Package rasj.odmg
Class RasTransaction
java.lang.Object
rasj.odmg.RasTransaction
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Abort a transaction.voidbegin()Begin a transaction.voidNot implemented yet.voidcommit()Commit a transaction.Returns the errorStatus.booleanisOpen()Returns TRUE if a transaction is currently open.booleanReturns TRUE if a transaction is supposed to be open as seen from client side.voidjoin()Not implemented yet.voidleave()Not implemented yet.voidNot implemented yet.booleanNot implemented yet.
-
Constructor Details
-
RasTransaction
-
-
Method Details
-
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
Not 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
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
Returns the errorStatus.
-