org.vraptor.plugin.jpa
Class JavaPersistenceInterceptor
java.lang.Object
org.vraptor.plugin.jpa.JavaPersistenceInterceptor
- All Implemented Interfaces:
- Interceptor
public class JavaPersistenceInterceptor
- extends Object
- implements Interceptor
Manages the EntityManager and transactions lifecycle, in a
request-based manner
- Since:
- 2.3.2
- Author:
- Fabio Kung
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaPersistenceInterceptor
public JavaPersistenceInterceptor()
intercept
public void intercept(LogicFlow flow)
throws LogicException,
ViewException
- Description copied from interface:
Interceptor
- Intercepts calls to logic components
- Specified by:
intercept in interface Interceptor
- Throws:
LogicException - some logic exception occurred
ViewException - some view exception occurred
getEntityManager
@Out(scope=REQUEST,
key="javax.persistence.EntityManager")
public javax.persistence.EntityManager getEntityManager()
Copyright © 2004-2008 VRaptor. All Rights Reserved.