gdamour 2004/11/07 03:04:27
Modified: modules/core/src/java/org/openejb/entity
EntityInterceptorBuilder.java
Log:
GERONIMO-429: Foreign key constraints are not enforced for CMP 2.x EntityBean.
o add a new element to openejb-jar.xml, namely
enforce-foreign-key-constraints,
indicating if DML operations related to CMP EJB need to be sorted in order to
enforce foreign key constraints; and
o add a new Interceptor in charge of defining the InTxCache bound to a
TransactionContext, if require.
Revision Changes Path
1.10 +2 -3
openejb/modules/core/src/java/org/openejb/entity/EntityInterceptorBuilder.java
Index: EntityInterceptorBuilder.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/entity/EntityInterceptorBuilder.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- EntityInterceptorBuilder.java 7 Sep 2004 22:40:38 -0000 1.9
+++ EntityInterceptorBuilder.java 7 Nov 2004 08:04:27 -0000 1.10
@@ -67,7 +67,7 @@
* @version $Revision$ $Date$
*/
public class EntityInterceptorBuilder extends AbstractInterceptorBuilder {
-
+
public TwoChains buildInterceptorChains() {
if (transactionContextManager == null) {
throw new IllegalStateException("Transaction context manager
must be set before building the interceptor chain");
@@ -104,5 +104,4 @@
firstInterceptor = new SystemExceptionInterceptor(firstInterceptor,
ejbName);
return new TwoChains(firstInterceptor, systemChain);
}
-
}