You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by gd...@apache.org on 2004/11/07 08:59:36 UTC
svn commit: rev 56821 - geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context
Author: gdamour
Date: Sat Nov 6 23:59:36 2004
New Revision: 56821
Modified:
geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContext.java
Log:
GERONIMO-429: Foreign key constraints are not enforced for CMP 2.x EntityBean.
TransactionContext does not create itself InTxCache instances. Instead, other
components, e.g. a CMPEntityInterceptor, is in charge of defining the
InTxCache used under the cover of a TransactionContext, if required.
Modified: geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContext.java
==============================================================================
--- geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContext.java (original)
+++ geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context/TransactionContext.java Sat Nov 6 23:59:36 2004
@@ -34,7 +34,6 @@
import org.apache.geronimo.transaction.DoubleKeyedHashMap;
import org.apache.geronimo.transaction.InstanceContext;
import org.tranql.cache.InTxCache;
-import org.tranql.cache.SimpleFlushStrategy;
/**
@@ -147,10 +146,11 @@
return (InstanceContext) associatedContexts.get(containerId, id);
}
+ public final void setInTxCache(InTxCache inTxCache) {
+ this.inTxCache = inTxCache;
+ }
+
public final InTxCache getInTxCache() {
- if (inTxCache == null) {
- inTxCache = new InTxCache(new SimpleFlushStrategy());
- }
return inTxCache;
}