org.apache.myfaces.extensions.cdi.jpa.impl
Class DefaultTransactionalInterceptorStrategy
java.lang.Object
org.apache.myfaces.extensions.cdi.jpa.impl.DefaultTransactionalInterceptorStrategy
- All Implemented Interfaces:
- Serializable, InterceptorStrategy, PersistenceStrategy
@Dependent
public class DefaultTransactionalInterceptorStrategy
- extends Object
- implements PersistenceStrategy
- Author:
- Mark Struberg, Gerhard Petracek
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransactionalInterceptorStrategy
public DefaultTransactionalInterceptorStrategy()
execute
public Object execute(javax.interceptor.InvocationContext context)
throws Exception
-
- Specified by:
execute
in interface InterceptorStrategy
- Throws:
Exception
extractTransactionalAnnotation
protected Transactional extractTransactionalAnnotation(javax.interceptor.InvocationContext context)
getTransactionQualifier
protected Class<? extends Annotation> getTransactionQualifier(Transactional transactionalAnnotation)
resolveEntityManagerBean
protected javax.enterprise.inject.spi.Bean<javax.persistence.EntityManager> resolveEntityManagerBean(Class<? extends Annotation> qualifierClass)
startProcess
protected Object startProcess(javax.interceptor.InvocationContext context,
org.apache.myfaces.extensions.cdi.jpa.impl.EntityManagerEntry entityManagerEntry,
javax.persistence.EntityManager entityManager)
throws Exception
- Throws:
Exception
proceedMethodInTransaction
protected Object proceedMethodInTransaction(javax.interceptor.InvocationContext context,
org.apache.myfaces.extensions.cdi.jpa.impl.EntityManagerEntry entityManagerEntry,
javax.persistence.EntityManager entityManager,
javax.persistence.EntityTransaction transaction)
throws Exception
- Throws:
Exception
beginTransaction
protected void beginTransaction(javax.persistence.EntityManager entityManager)
commitTransaction
protected void commitTransaction(javax.persistence.EntityManager entityManager)
rollbackTransaction
protected void rollbackTransaction(javax.persistence.EntityManager entityManager)
endProcess
protected void endProcess(org.apache.myfaces.extensions.cdi.jpa.impl.EntityManagerEntry entityManagerEntry,
javax.persistence.EntityManager entityManager,
Exception exception)
throws Exception
- Throws:
Exception
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.