openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r614583 - in /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence: EntityManagerImpl.java OpenJPAEntityManager.java
Date Wed, 23 Jan 2008 17:23:11 GMT
Author: pcl
Date: Wed Jan 23 09:22:55 2008
New Revision: 614583

URL: http://svn.apache.org/viewvc?rev=614583&view=rev
Log:
OPENJPA-500

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=614583&r1=614582&r2=614583&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Wed Jan 23 09:22:55 2008
@@ -136,6 +136,10 @@
             _broker.getConnectionRetainMode());
     }
 
+    public boolean isTransactionManaged() {
+        return _broker.isManaged();
+    }
+
     public boolean isManaged() {
         return _broker.isManaged();
     }

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java?rev=614583&r1=614582&r2=614583&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/OpenJPAEntityManager.java
Wed Jan 23 09:22:55 2008
@@ -63,6 +63,15 @@
 
     /**
      * Whether this entity manager is using managed transactions.
+     *
+     * @since 1.1.0
+     */
+    public boolean isTransactionManaged();
+
+    /**
+     * @deprecated use {@link #isTransactionManaged} instead to interrogate
+     * whether or not this EntityManager's transaction is managed. To determine
+     * if a given entity instance is managed, use {@link #contains}.
      */
     public boolean isManaged();
 



Mime
View raw message