1 16 17 package org.springframework.transaction.annotation; 18 19 import org.springframework.transaction.TransactionDefinition; 20 21 32 public enum Propagation { 33 34 39 REQUIRED(TransactionDefinition.PROPAGATION_REQUIRED), 40 41 52 SUPPORTS(TransactionDefinition.PROPAGATION_SUPPORTS), 53 54 58 MANDATORY(TransactionDefinition.PROPAGATION_MANDATORY), 59 60 69 REQUIRES_NEW(TransactionDefinition.PROPAGATION_REQUIRES_NEW), 70 71 80 NOT_SUPPORTED(TransactionDefinition.PROPAGATION_NOT_SUPPORTED), 81 82 86 NEVER(TransactionDefinition.PROPAGATION_NEVER), 87 88 97 NESTED(TransactionDefinition.PROPAGATION_NESTED); 98 99 100 private final int value; 101 102 103 Propagation(int value) { this.value = value; } 104 105 public int value() { return value; } 106 107 } 108 | Popular Tags |