001 package org.odmg;
002
003
004
005
006
007 /**
008
009 * This exception is thrown if a lock could not be granted on an object.
010
011 * @author David Jordan (as Java Editor of the Object Data Management Group)
012
013 * @version ODMG 3.0
014
015 */
016
017
018
019 public class LockNotGrantedException extends ODMGRuntimeException
020
021 {
022
023 /*
024
025 private Object o;
026
027 private int m;
028
029 *
030
031 * Construct an instance of the exception.
032
033 * @param obj The object that the application was trying to acquire a lock on.
034
035 * @param mode The lock mode that the application was attempting to acquire.
036
037 * @see org.odmg.Transaction#lock
038
039 *
040
041 public LockNotGrantedException(Object obj, int mode)
042
043 {
044
045 super();
046
047 o = obj;
048
049 m = mode;
050
051 }
052
053 */
054
055 /*
056
057 private Object o;
058
059 private int m;
060
061 *
062
063 * Construct an instance of the exception.
064
065 * @param obj The object that the application was trying to acquire a lock on.
066
067 * @param mode The lock mode that the application was attempting to acquire.
068
069 * @see org.odmg.Transaction#lock
070
071 *
072
073 public LockNotGrantedException(Object obj, int mode)
074
075 {
076
077 super();
078
079 o = obj;
080
081 m = mode;
082
083 }
084
085 */
086
087 /*
088
089 private Object o;
090
091 private int m;
092
093 *
094
095 * Construct an instance of the exception.
096
097 * @param obj The object that the application was trying to acquire a lock on.
098
099 * @param mode The lock mode that the application was attempting to acquire.
100
101 * @see org.odmg.Transaction#lock
102
103 *
104
105 public LockNotGrantedException(Object obj, int mode)
106
107 {
108
109 super();
110
111 o = obj;
112
113 m = mode;
114
115 }
116
117 */
118
119 /**
120
121 * Construct an instance of the exception.
122
123 */
124
125 public LockNotGrantedException()
126
127 {
128
129 super();
130
131 }
132
133
134
135 /**
136
137 * Construct an instance of the exception with a descriptive message.
138
139 * @param msg A description of the exception.
140
141 */
142
143 public LockNotGrantedException(String msg)
144
145 {
146
147 super(msg);
148
149 }
150
151 /*
152
153 private Object o;
154
155 private int m;
156
157 *
158
159 * Construct an instance of the exception.
160
161 * @param obj The object that the application was trying to acquire a lock on.
162
163 * @param mode The lock mode that the application was attempting to acquire.
164
165 * @see org.odmg.Transaction#lock
166
167 *
168
169 public LockNotGrantedException(Object obj, int mode)
170
171 {
172
173 super();
174
175 o = obj;
176
177 m = mode;
178
179 }
180
181 */
182
183 }
184