geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: rev 56821 - geronimo/trunk/modules/transaction/src/java/org/apache/geronimo/transaction/context
Date Sun, 07 Nov 2004 07:59:36 GMT
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;
     }
 

Mime
View raw message