org.apache.ojb.odmg
Interface TransactionExt

All Superinterfaces:
HasBroker, Transaction
All Known Implementing Classes:
NarrowTransaction, TransactionImpl

public interface TransactionExt
extends Transaction, HasBroker

Offers useful none odmg-standard methods.

Note: All listed methods are not part of the standard ODMG-api - they are special (proprietary) OJB extensions.

Version:
$Id: TransactionExt.java,v 1.2 2003/10/03 12:39:40 thma Exp $
Author:
Armin Waibel

Field Summary
 
Fields inherited from interface org.odmg.Transaction
READ, UPGRADE, WRITE
 
Method Summary
 void flush()
           Calling flush flushes persistent object modifications made within the ODMG transaction since the last checkpoint to the underlying database transaction, but does commit the database transaction.
 void markDelete(java.lang.Object anObject)
          marks an object for deletion without locking the object.
 void markDirty(java.lang.Object anObject)
          marks an object as dirty without locking the object.
 void setImplicitLocking(boolean value)
          This method can be used to activate or deactivate the implicit locking mechanism for the current transaction.
 
Methods inherited from interface org.odmg.Transaction
abort, begin, checkpoint, commit, isOpen, join, leave, lock, tryLock
 
Methods inherited from interface org.apache.ojb.odmg.HasBroker
getBroker
 

Method Detail

markDelete

public void markDelete(java.lang.Object anObject)
marks an object for deletion without locking the object.

Parameters:
anObject - Object to be marked

markDirty

public void markDirty(java.lang.Object anObject)
marks an object as dirty without locking the object.

Parameters:
anObject - Object to be marked

flush

public void flush()

Calling flush flushes persistent object modifications made within the ODMG transaction since the last checkpoint to the underlying database transaction, but does commit the database transaction. The ODMG transaction retains all locks it held on those objects at the time the flush was invoked.

This method is very similair to Transaction.checkpoint().


setImplicitLocking

public void setImplicitLocking(boolean value)
This method can be used to activate or deactivate the implicit locking mechanism for the current transaction. turning of implicit locking may improve performance but requires additional care to make sure all changed objects are properly registered to the transaction.

Parameters:
value - if set to true implicit locking is enabled, if false, implicit locking is disabled.


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14