1
2
3
4
5
6
7
8 package types;
9
10
11
12
13
14
15 public enum TableAccessModeType {
16
17
18
19
20
21
22
23
24
25 READ_ONLY("read-only"),
26
27
28
29 SHARED("shared"),
30
31
32
33 EXCLUSIVE("exclusive"),
34
35
36
37 DB_LOCKED("db-locked");
38
39
40
41
42
43
44
45
46 private final java.lang.String value;
47
48
49
50
51 private static final java.util.Map<java.lang.String, TableAccessModeType> enumConstants = new java.util.HashMap<java.lang.String, TableAccessModeType>();
52
53
54 static {
55 for (TableAccessModeType c: TableAccessModeType.values()) {
56 TableAccessModeType.enumConstants.put(c.value, c);
57 }
58
59 };
60
61
62
63
64
65
66 private TableAccessModeType(final java.lang.String value) {
67 this.value = value;
68 }
69
70
71
72
73
74
75
76
77
78
79
80
81 public static types.TableAccessModeType fromValue(
82 final java.lang.String value) {
83 TableAccessModeType c = TableAccessModeType.enumConstants.get(value);
84 if (c != null) {
85 return c;
86 }
87 throw new IllegalArgumentException(value);
88 }
89
90
91
92
93
94
95 public void setValue(
96 final java.lang.String value) {
97 }
98
99
100
101
102
103
104 public java.lang.String toString(
105 ) {
106 return this.value;
107 }
108
109
110
111
112
113
114 public java.lang.String value(
115 ) {
116 return this.value;
117 }
118
119 }