@Interceptor @Transactional public class TransactionalInterceptor extends Object implements Serializable
| Constructor and Description |
|---|
TransactionalInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeInTransaction(javax.interceptor.InvocationContext invocationContext)
Creates a transaction before the intercepted method gets called and commits or reverts it after the invocation.
|
public Object executeInTransaction(javax.interceptor.InvocationContext invocationContext) throws Exception
PersistenceStrategy is allowed to begin the transaction lazily but
it has to support nested interceptor calls.invocationContext - current invocation-contextException - exception which might be thrown by the intercepted methodCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.