OPENJPA-500

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-01-23 17:22:55 +00:00
parent 4d9a6759db
commit 3aa60007dd
2 changed files with 13 additions and 0 deletions

View File

@ -136,6 +136,10 @@ public class EntityManagerImpl
_broker.getConnectionRetainMode());
}
public boolean isTransactionManaged() {
return _broker.isManaged();
}
public boolean isManaged() {
return _broker.isManaged();
}

View File

@ -63,6 +63,15 @@ public interface OpenJPAEntityManager
/**
* 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();