1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.dao.orm;
16  
17  /**
18   * <a href="LockMode.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface LockMode {
23  
24      public static final LockMode FORCE = new LockModeImpl("FORCE");
25  
26      public static final LockMode NONE = new LockModeImpl("NONE");
27  
28      public static final LockMode OPTIMISTIC = new LockModeImpl("OPTIMISTIC");
29  
30      public static final LockMode OPTIMISTIC_FORCE_INCREMENT = new LockModeImpl(
31          "OPTIMISTIC_FORCE_INCREMENT");
32  
33      public static final LockMode PESSIMISTIC_FORCE_INCREMENT = new LockModeImpl(
34          "PESSIMISTIC_FORCE_INCREMENT");
35  
36      public static final LockMode PESSIMISTIC_READ = new LockModeImpl(
37          "PESSIMISTIC_READ");
38  
39      public static final LockMode PESSIMISTIC_WRITE = new LockModeImpl(
40          "PESSIMISTIC_WRITE");
41  
42      public static final LockMode READ = new LockModeImpl("READ");
43  
44      public static final LockMode UPGRADE = new LockModeImpl("UPGRADE");
45  
46      public static final LockMode UPGRADE_NOWAIT =
47          new LockModeImpl("UPGRADE_NOWAIT");
48  
49      public static final LockMode WRITE = new LockModeImpl("WRITE");
50  
51      public String getName();
52  
53  }