1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.annotation;
16  
17  import java.sql.Connection;
18  
19  /**
20   * <a href="TransactionDefinition.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Michael Young
23   */
24  public interface TransactionDefinition {
25  
26      public static final int ISOLATION_DEFAULT = -1;
27  
28      public static final int ISOLATION_PORTAL = -2;
29  
30      public static final int ISOLATION_READ_COMMITTED =
31          Connection.TRANSACTION_READ_COMMITTED;
32  
33      public static final int ISOLATION_READ_UNCOMMITTED =
34          Connection.TRANSACTION_READ_UNCOMMITTED;
35  
36      public static final int ISOLATION_REPEATABLE_READ =
37          Connection.TRANSACTION_REPEATABLE_READ;
38  
39      public static final int ISOLATION_SERIALIZABLE =
40          Connection.TRANSACTION_SERIALIZABLE;
41  
42      public static final int PROPAGATION_MANDATORY = 2;
43  
44      public static final int PROPAGATION_NESTED = 6;
45  
46      public static final int PROPAGATION_NEVER = 5;
47  
48      public static final int PROPAGATION_NOT_SUPPORTED = 4;
49  
50      public static final int PROPAGATION_REQUIRED = 0;
51  
52      public static final int PROPAGATION_REQUIRES_NEW = 3;
53  
54      public static final int PROPAGATION_SUPPORTS = 1;
55  
56      public static final int TIMEOUT_DEFAULT = -1;
57  
58  }