org.xorm
Class TransactionImpl

java.lang.Object
  |
  +--org.xorm.TransactionImpl
All Implemented Interfaces:
I15d, Transaction

public class TransactionImpl
extends Object
implements Transaction, I15d

A transaction with ACID properties, to which may be attached any number of objects.


Field Summary
 
Fields inherited from interface org.xorm.I15d
I18N
 
Constructor Summary
TransactionImpl(org.xorm.InterfaceManager mgr, DatastoreDriver driver, Options jdoOptions)
           
 
Method Summary
 void attach(Object o)
           
 void begin()
           
 void begin(boolean readOnly)
           
 void commit()
           
 boolean contains(Object o)
           
 void detach(Object o)
           
 void detachRelationship(RelationshipProxy rp)
           
protected  void finalize()
           
 Object get(Class clazz, Object primaryKey)
           
 DatastoreDriver getDriver()
           
 boolean getNontransactionalRead()
           
 boolean getNontransactionalWrite()
           
 boolean getOptimistic()
           
 PersistenceManager getPersistenceManager()
           
 boolean getRestoreValues()
           
 boolean getRetainValues()
           
 Synchronization getSynchronization()
           
 boolean isActive()
           
 void rollback()
           
 void setNontransactionalRead(boolean value)
           
 void setNontransactionalWrite(boolean value)
           
 void setOptimistic(boolean value)
           
 void setRestoreValues(boolean restoreValues)
           
 void setRetainValues(boolean value)
           
 void setSynchronization(Synchronization synchronization)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionImpl

public TransactionImpl(org.xorm.InterfaceManager mgr,
                       DatastoreDriver driver,
                       Options jdoOptions)
Method Detail

getPersistenceManager

public PersistenceManager getPersistenceManager()
Specified by:
getPersistenceManager in interface Transaction

getDriver

public DatastoreDriver getDriver()

attach

public void attach(Object o)

contains

public boolean contains(Object o)

get

public Object get(Class clazz,
                  Object primaryKey)

detach

public void detach(Object o)

detachRelationship

public void detachRelationship(RelationshipProxy rp)

begin

public void begin()
Specified by:
begin in interface Transaction

begin

public void begin(boolean readOnly)

rollback

public void rollback()
Specified by:
rollback in interface Transaction

commit

public void commit()
Specified by:
commit in interface Transaction

isActive

public boolean isActive()
Specified by:
isActive in interface Transaction

setSynchronization

public void setSynchronization(Synchronization synchronization)
Specified by:
setSynchronization in interface Transaction

getSynchronization

public Synchronization getSynchronization()
Specified by:
getSynchronization in interface Transaction

setNontransactionalRead

public void setNontransactionalRead(boolean value)
Specified by:
setNontransactionalRead in interface Transaction

getNontransactionalRead

public boolean getNontransactionalRead()
Specified by:
getNontransactionalRead in interface Transaction

setNontransactionalWrite

public void setNontransactionalWrite(boolean value)
Specified by:
setNontransactionalWrite in interface Transaction

getNontransactionalWrite

public boolean getNontransactionalWrite()
Specified by:
getNontransactionalWrite in interface Transaction

setOptimistic

public void setOptimistic(boolean value)
Specified by:
setOptimistic in interface Transaction

getOptimistic

public boolean getOptimistic()
Specified by:
getOptimistic in interface Transaction

setRetainValues

public void setRetainValues(boolean value)
Specified by:
setRetainValues in interface Transaction

getRetainValues

public boolean getRetainValues()
Specified by:
getRetainValues in interface Transaction

setRestoreValues

public void setRestoreValues(boolean restoreValues)
Specified by:
setRestoreValues in interface Transaction

getRestoreValues

public boolean getRestoreValues()
Specified by:
getRestoreValues in interface Transaction

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throwable


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/TransactionImpl.html,v 1.9 2004/05/30 08:55:03 wbiggs Exp $