mirror of https://github.com/apache/openjpa.git
OPENJPA-500
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d9a6759db
commit
3aa60007dd
|
@ -136,6 +136,10 @@ public class EntityManagerImpl
|
|||
_broker.getConnectionRetainMode());
|
||||
}
|
||||
|
||||
public boolean isTransactionManaged() {
|
||||
return _broker.isManaged();
|
||||
}
|
||||
|
||||
public boolean isManaged() {
|
||||
return _broker.isManaged();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue