|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.jee.integration.dao.JtaTransactionStrategy
public class JtaTransactionStrategy
Concrete implementation of ITransactionStrategy
targeting the
use of UserTransaction
Constructor Summary | |
---|---|
JtaTransactionStrategy()
Constructs a JtaTransactionStrategy using the default
UserTransaction service name "java:comp/UserTransaction" |
|
JtaTransactionStrategy(String aServiceName)
Constructs a JtaTransactionStrategy from the UserTransaction
service name provided. |
Method Summary | |
---|---|
ITransaction |
getTransaction()
Returns the adapted JPA implementation-specific Transaction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JtaTransactionStrategy()
JtaTransactionStrategy
using the default
UserTransaction service name "java:comp/UserTransaction"
public JtaTransactionStrategy(String aServiceName) throws IllegalArgumentException
JtaTransactionStrategy
from the UserTransaction
service name provided. It can be server-specific.
aServiceName
- The Service name
IllegalArgumentException
- 'aServiceName' must not be nullMethod Detail |
---|
public ITransaction getTransaction()
Transaction
getTransaction
in interface ITransactionStrategy
Transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |