The Java Persistence API defines EntityTransaction interface. Which statement is correct?
A.
It is used to control transactions on JTA entity managers.
B.
It is used to control transactions on resource-local entity managers.
C.
All methods of this interface will throw HlegalStateException if a transaction is NOT active.
D.
Calling getTransaction method on a closed entity manager will throw an HlegalStateException.