1 16 17 package org.springframework.transaction.annotation; 18 19 import org.springframework.transaction.TransactionDefinition; 20 21 32 public enum Isolation { 33 34 39 DEFAULT(TransactionDefinition.ISOLATION_DEFAULT), 40 41 49 READ_UNCOMMITTED(TransactionDefinition.ISOLATION_READ_UNCOMMITTED), 50 51 57 READ_COMMITTED(TransactionDefinition.ISOLATION_READ_COMMITTED), 58 59 68 REPEATABLE_READ(TransactionDefinition.ISOLATION_REPEATABLE_READ), 69 70 80 SERIALIZABLE(TransactionDefinition.ISOLATION_SERIALIZABLE); 81 82 83 private final int value; 84 85 86 Isolation(int value) { this.value = value; } 87 88 public int value() { return value; } 89 90 } 91 | Popular Tags |