1 16 17 package org.springframework.transaction; 18 19 import java.sql.Connection ; 20 21 44 public interface TransactionDefinition { 45 46 52 int PROPAGATION_REQUIRED = 0; 53 54 73 int PROPAGATION_SUPPORTS = 1; 74 75 81 int PROPAGATION_MANDATORY = 2; 82 83 96 int PROPAGATION_REQUIRES_NEW = 3; 97 98 111 int PROPAGATION_NOT_SUPPORTED = 4; 112 113 119 int PROPAGATION_NEVER = 5; 120 121 132 int PROPAGATION_NESTED = 6; 133 134 135 140 int ISOLATION_DEFAULT = -1; 141 142 151 int ISOLATION_READ_UNCOMMITTED = Connection.TRANSACTION_READ_UNCOMMITTED; 152 153 160 int ISOLATION_READ_COMMITTED = Connection.TRANSACTION_READ_COMMITTED; 161 162 172 int ISOLATION_REPEATABLE_READ = Connection.TRANSACTION_REPEATABLE_READ; 173 174 186 int ISOLATION_SERIALIZABLE = Connection.TRANSACTION_SERIALIZABLE; 187 188 189 193 int TIMEOUT_DEFAULT = -1; 194 195 196 204 int getPropagationBehavior(); 205 206 217 int getIsolationLevel(); 218 219 229 int getTimeout(); 230 231 248 boolean isReadOnly(); 249 250 262 String getName(); 263 264 } 265 | Popular Tags |