|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JPAExecutor<T>
Executor pattern interface that gives access to an EntityManager.
JPAService.
| Method Summary | |
|---|---|
T |
execute(javax.persistence.EntityManager em)
Method that encapsulates JPA access operations. |
String |
getName()
Return the name of the JPA executor. |
| Method Detail |
|---|
String getName()
T execute(javax.persistence.EntityManager em)
throws JPAExecutorException
EntityManager.
Implementations should commit any transaction before ending, else the transaction will be rolled back.
em - an active EntityManager
JPAExecutorException - thrown if a jpa executor failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||