[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Oct 12 04:32:38 EDT 2006
User: gavin
Date: 06/10/12 04:32:38
Modified: src/main/org/jboss/seam/core ManagedPersistenceContext.java
Log:
pluggable peristence provider strategies
Revision Changes Path
1.21 +4 -4 jboss-seam/src/main/org/jboss/seam/core/ManagedPersistenceContext.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ManagedPersistenceContext.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/ManagedPersistenceContext.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- ManagedPersistenceContext.java 10 Oct 2006 19:37:37 -0000 1.20
+++ ManagedPersistenceContext.java 12 Oct 2006 08:32:37 -0000 1.21
@@ -1,4 +1,4 @@
-//$Id: ManagedPersistenceContext.java,v 1.20 2006/10/10 19:37:37 gavin Exp $
+//$Id: ManagedPersistenceContext.java,v 1.21 2006/10/12 08:32:37 gavin Exp $
package org.jboss.seam.core;
import static org.jboss.seam.InterceptionType.NEVER;
@@ -22,8 +22,8 @@
import org.jboss.seam.annotations.Intercept;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
+import org.jboss.seam.persistence.PersistenceProvider;
import org.jboss.seam.util.Naming;
-import org.jboss.seam.util.Persistence;
import org.jboss.seam.util.Transactions;
/**
@@ -84,7 +84,7 @@
case AUTO:
break;
case MANUAL:
- Persistence.setFlushModeManual(entityManager);
+ PersistenceProvider.instance().setFlushModeManual(entityManager);
break;
case COMMIT:
entityManager.setFlushMode(FlushModeType.COMMIT);
@@ -105,7 +105,7 @@
//we can't use @PrePassivate because it is intercept NEVER
public void sessionWillPassivate(HttpSessionEvent event)
{
- if ( !Persistence.isDirty(entityManager) )
+ if ( !PersistenceProvider.instance().isDirty(entityManager) )
{
entityManager.close();
entityManager = null;
More information about the jboss-cvs-commits
mailing list