public class J2EETransactionImpl extends TransactionImpl implements javax.transaction.Synchronization
READ, UPGRADE, WRITE| Constructor and Description |
|---|
J2EETransactionImpl(ImplementationImpl implementation) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort and close the transaction.
|
void |
afterCompletion(int status)
FOR internal use.
|
void |
beforeCompletion()
FOR internal use.
|
void |
checkpoint()
Commit the transaction, but reopen the transaction, retaining all locks.
|
void |
commit()
Commit and close the transaction.
|
boolean |
isInExternTransaction() |
void |
join()
Attach the caller's thread to this
Transaction and detach the
thread from any former Transaction the thread may have been
associated with. |
void |
leave()
Detach the caller's thread from this
Transaction , but do not
attach the thread to another Transaction . |
void |
setInExternTransaction(boolean mode) |
afterLoading, afterMaterialization, beforeLoading, beforeMaterialization, begin, clearRegistrationList, configure, deletePersistent, flush, getAssociatedDatabase, getBroker, getBrokerInternal, getGUID, getImplementation, getNamedRootsMap, getObjectByIdentity, getRegistrationList, isDeleted, isImplicitLocking, isOpen, isOrdering, lock, lockAndRegister, lockAndRegister, markDelete, markDirty, setCascadingDelete, setCascadingDelete, setImplicitLocking, setOrdering, tryLockpublic J2EETransactionImpl(ImplementationImpl implementation)
public void setInExternTransaction(boolean mode)
public boolean isInExternTransaction()
public void join()
TransactionImplTransaction and detach the
thread from any former Transaction the thread may have been
associated with.join in interface Transactionjoin in class TransactionImplpublic void leave()
TransactionImplTransaction , but do not
attach the thread to another Transaction .leave in interface Transactionleave in class TransactionImplpublic void checkpoint()
TransactionImplcheckpoint commits persistent object modifications
made within the transaction since the last checkpoint to the database. The
transaction retains all locks it held on those objects at the time the
checkpoint was invoked.checkpoint in interface Transactioncheckpoint in class TransactionImplpublic void afterCompletion(int status)
afterCompletion in interface javax.transaction.SynchronizationSynchronizationpublic void beforeCompletion()
beforeCompletion in interface javax.transaction.SynchronizationSynchronizationpublic void commit()
TransactionImplcommit commits to
the database all persistent object modifications within the transaction and
releases any locks held by the transaction. A persistent object
modification is an update of any field of an existing persistent object, or
an update or creation of a new named object in the database. If a
persistent object modification results in a reference from an existing
persistent object to a transient object, the transient object is moved to
the database, and all references to it updated accordingly. Note that the
act of moving a transient object to the database may create still more
persistent references to transient objects, so its referents must be
examined and moved as well. This process continues until the database
contains no references to transient objects, a condition that is guaranteed
as part of transaction commit. Committing a transaction does not remove
from memory transient objects created during the transaction.
The updateObjectList contains a list of all objects for which this transaction
has write privledge to. We need to update these objects.commit in interface Transactioncommit in class TransactionImplpublic void abort()
TransactionImplabort in interface Transactionabort in class TransactionImpl(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30