|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.support.persistence.TransactionProxyFactory<T>
public class TransactionProxyFactory<T>
This utility makes sure that each invocation on a certain interface is
carried out within a JPA unit of work.
Use getTransactionScopedEntityManager() to get the transaction
scoped entity manager to pass to services.
| Constructor Summary | |
|---|---|
TransactionProxyFactory(JpaBuilder aJpaBuilder,
java.lang.Class<T> aClass)
Constructs the transaction proxy. |
|
| Method Summary | |
|---|---|
T |
getProxy(T aService)
|
javax.persistence.EntityManager |
getTransactionScopedEntityManager()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionProxyFactory(JpaBuilder aJpaBuilder,
java.lang.Class<T> aClass)
aJpaBuilder - | Method Detail |
|---|
public javax.persistence.EntityManager getTransactionScopedEntityManager()
public T getProxy(T aService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||