| java.lang.Object org.apache.ojb.odmg.TransactionImpl org.apache.ojb.odmg.J2EETransactionImpl
J2EETransactionImpl | public class J2EETransactionImpl extends TransactionImpl implements Synchronization(Code) | | Implementation for use in managed environments.
author: Matthew Baird version: $Id: J2EETransactionImpl.java,v 1.25.2.7 2005/12/21 22:29:21 tomdz Exp $ |
abort | public void abort()(Code) | | |
afterCompletion | public void afterCompletion(int status)(Code) | | FOR internal use. This method was called after the external transaction was completed.
See Also: javax.transaction.Synchronization |
beforeCompletion | public void beforeCompletion()(Code) | | FOR internal use. This method was called before the external transaction was completed.
This method was called by the JTA-TxManager before the JTA-tx prepare call. Within this method
we prepare odmg for commit and pass all modified persistent objects to DB and release/close the used
connection. We have to close the connection in this method, because the TxManager does prepare for commit
after this method and all used DataSource-connections have to be closed before.
See Also: javax.transaction.Synchronization |
checkpoint | public void checkpoint()(Code) | | |
commit | public void commit()(Code) | | |
isInExternTransaction | public boolean isInExternTransaction()(Code) | | |
leave | public void leave()(Code) | | |
setInExternTransaction | public void setInExternTransaction(boolean mode)(Code) | | |
Methods inherited from org.apache.ojb.odmg.TransactionImpl | public void abort()(Code)(Java Doc) public void afterLoading(CollectionProxyDefaultImpl colProxy)(Code)(Java Doc) public void afterMaterialization(IndirectionHandler handler, Object materializedObject)(Code)(Java Doc) public void beforeLoading(CollectionProxyDefaultImpl colProxy)(Code)(Java Doc) public void beforeMaterialization(IndirectionHandler handler, Identity oid)(Code)(Java Doc) public synchronized void begin()(Code)(Java Doc) protected boolean cascadeDeleteFor(ObjectReferenceDescriptor ord)(Code)(Java Doc) protected void checkForBegin()(Code)(Java Doc) protected void checkForCommit()(Code)(Java Doc) public void checkpoint()(Code)(Java Doc) protected void cleanupBroker()(Code)(Java Doc) public void clearRegistrationList()(Code)(Java Doc) public void commit()(Code)(Java Doc) public void configure(Configuration config) throws ConfigurationException(Code)(Java Doc) public void deletePersistent(RuntimeObject rt)(Code)(Java Doc) protected synchronized void doAbort()(Code)(Java Doc) protected synchronized void doClose()(Code)(Java Doc) void doSingleLock(ClassDescriptor cld, Object obj, Identity oid, int lockMode) throws LockNotGrantedException(Code)(Java Doc) void doSingleRegister(RuntimeObject rtObject, int lockMode) throws LockNotGrantedException, PersistenceBrokerException(Code)(Java Doc) protected synchronized void doWriteObjects(boolean isFlush) throws TransactionAbortedException, LockNotGrantedException(Code)(Java Doc) public void flush()(Code)(Java Doc) public DatabaseImpl getAssociatedDatabase()(Code)(Java Doc) public PersistenceBroker getBroker()(Code)(Java Doc) public PersistenceBrokerInternal getBrokerInternal()(Code)(Java Doc) public String getGUID()(Code)(Java Doc) public ImplementationImpl getImplementation()(Code)(Java Doc) int getImpliciteLockType(int parentLockMode)(Code)(Java Doc) public NamedRootsMap getNamedRootsMap()(Code)(Java Doc) public Object getObjectByIdentity(Identity id) throws PersistenceBrokerException(Code)(Java Doc) public ArrayList getRegistrationList()(Code)(Java Doc) protected int getStatus()(Code)(Java Doc) protected boolean hasBroker()(Code)(Java Doc) public boolean isDeleted(Identity id)(Code)(Java Doc) public boolean isImplicitLocking()(Code)(Java Doc) public boolean isOpen()(Code)(Java Doc) public boolean isOrdering()(Code)(Java Doc) protected boolean isTransient(ClassDescriptor cld, Object obj, Identity oid)(Code)(Java Doc) public void join()(Code)(Java Doc) public void leave()(Code)(Java Doc) public void lock(Object obj, int lockMode) throws LockNotGrantedException(Code)(Java Doc) public void lockAndRegister(RuntimeObject rtObject, int lockMode, List registeredObjects)(Code)(Java Doc) public synchronized void lockAndRegister(RuntimeObject rtObject, int lockMode, boolean cascade, List registeredObjects)(Code)(Java Doc) void makePersistent(RuntimeObject rt)(Code)(Java Doc) public void markDelete(Object anObject)(Code)(Java Doc) public void markDirty(Object anObject)(Code)(Java Doc) void markDirty(RuntimeObject rt)(Code)(Java Doc) void markPersistent(RuntimeObject rtObj)(Code)(Java Doc) protected void performTransactionAwareAfterCommit()(Code)(Java Doc) protected void performTransactionAwareAfterRollback()(Code)(Java Doc) protected void performTransactionAwareBeforeCommit()(Code)(Java Doc) protected void performTransactionAwareBeforeRollback()(Code)(Java Doc) protected void prepareCommit() throws TransactionAbortedException, LockNotGrantedException(Code)(Java Doc) protected void refresh()(Code)(Java Doc) protected synchronized void registerToIndirectionHandler(IndirectionHandler handler)(Code)(Java Doc) protected void registerUnmaterializedLocks(Object obj)(Code)(Java Doc) public void setCascadingDelete(Class target, String referenceField, boolean doCascade)(Code)(Java Doc) public void setCascadingDelete(Class target, boolean doCascade)(Code)(Java Doc) public synchronized void setImplicitLocking(boolean value)(Code)(Java Doc) public void setOrdering(boolean ordering)(Code)(Java Doc) protected void setStatus(int status)(Code)(Java Doc) public boolean tryLock(Object obj, int lockMode)(Code)(Java Doc) protected synchronized void unRegisterFromAllCollectionProxies()(Code)(Java Doc) protected synchronized void unRegisterFromAllIndirectionHandlers()(Code)(Java Doc) protected synchronized void unregisterFromCollectionProxy(CollectionProxy handler)(Code)(Java Doc) protected synchronized void unregisterFromIndirectionHandler(IndirectionHandler handler)(Code)(Java Doc)
|
|
|