1 16 17 package org.springframework.transaction.annotation; 18 19 import java.lang.annotation.Documented ; 20 import java.lang.annotation.ElementType ; 21 import java.lang.annotation.Inherited ; 22 import java.lang.annotation.Retention ; 23 import java.lang.annotation.RetentionPolicy ; 24 import java.lang.annotation.Target ; 25 26 import org.springframework.transaction.TransactionDefinition; 27 28 46 @Target ({ElementType.METHOD, ElementType.TYPE}) 47 @Retention (RetentionPolicy.RUNTIME) 48 @Inherited 49 @Documented 50 public @interface Transactional { 51 52 56 Propagation propagation() default Propagation.REQUIRED; 57 58 62 Isolation isolation() default Isolation.DEFAULT; 63 64 68 int timeout() default TransactionDefinition.TIMEOUT_DEFAULT; 69 70 74 boolean readOnly() default false; 75 76 84 Class <? extends Throwable >[] rollbackFor() default {}; 85 86 101 String [] rollbackForClassName() default {}; 102 103 111 Class <? extends Throwable >[] noRollbackFor() default {}; 112 113 121 String [] noRollbackForClassName() default {}; 122 123 } 124 | Popular Tags |