org.vraptor.plugin.jpa
Class JavaPersistenceInterceptor

java.lang.Object
  extended by 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

Constructor Summary
JavaPersistenceInterceptor()
           
 
Method Summary
 javax.persistence.EntityManager getEntityManager()
           
 void intercept(LogicFlow flow)
          Intercepts calls to logic components
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPersistenceInterceptor

public JavaPersistenceInterceptor()
Method Detail

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.