Package javax.transaction

Examples of javax.transaction.Transactional.rollbackOn()


                    Transactional tx = method.getAnnotation(Transactional.class);
                    if (tx == null) {
                        tx = method.getDeclaringClass().getAnnotation(Transactional.class);
                    }
                    if (tx != null) { // TODO: find Bean instead of reflection
                        if (new ExceptionPriotiryRules(tx.rollbackOn(), tx.dontRollbackOn()).accept(error)) {
                            policy.setRollbackOnly();
                        }
                    }
                }
                policy.commit();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.