KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > odmg > ObjectNameNotFoundException


1 package org.odmg;
2
3
4
5 /**
6
7  * An attempt to get a object via its name using <code>Database.lookup</code>
8
9  * and the name is not associated with an object in the database.
10
11  * @author David Jordan (as Java Editor of the Object Data Management Group)
12
13  * @version ODMG 3.0
14
15  * @see org.odmg.Database#lookup
16
17  */

18
19
20
21 public class ObjectNameNotFoundException extends ODMGException
22
23 {
24
25 /*
26
27     private String n;
28
29
30
31 * Construct an instance of the exception.
32
33 * @param name The name passed to Database.lookup that is not associated with
34
35 * any object in the database.
36
37
38
39     public ObjectNameNotFoundException(String name)
40
41   {
42
43         super();
44
45     n = name;
46
47   }
48
49
50
51
52
53 * Access the name that is not bound to any object in the database.
54
55 * @return The name that was passed to Database.lookup.
56
57
58
59   public String getName()
60
61   {
62
63     return n;
64
65   }
66
67 */

68
69 /*
70
71     private String n;
72
73
74
75 * Construct an instance of the exception.
76
77 * @param name The name passed to Database.lookup that is not associated with
78
79 * any object in the database.
80
81
82
83     public ObjectNameNotFoundException(String name)
84
85   {
86
87         super();
88
89     n = name;
90
91   }
92
93
94
95
96
97 * Access the name that is not bound to any object in the database.
98
99 * @return The name that was passed to Database.lookup.
100
101
102
103   public String getName()
104
105   {
106
107     return n;
108
109   }
110
111 */

112
113 /*
114
115     private String n;
116
117
118
119 * Construct an instance of the exception.
120
121 * @param name The name passed to Database.lookup that is not associated with
122
123 * any object in the database.
124
125
126
127     public ObjectNameNotFoundException(String name)
128
129   {
130
131         super();
132
133     n = name;
134
135   }
136
137
138
139
140
141 * Access the name that is not bound to any object in the database.
142
143 * @return The name that was passed to Database.lookup.
144
145
146
147   public String getName()
148
149   {
150
151     return n;
152
153   }
154
155 */

156
157     /**
158
159      * Construct an instance of the exception.
160
161      */

162
163     public ObjectNameNotFoundException()
164
165     {
166
167         super();
168
169     }
170
171
172
173     /**
174
175      * Construct an instance of the exception with a descriptive message.
176
177      * @param msg A message describing the exception.
178
179      */

180
181     public ObjectNameNotFoundException(String JavaDoc msg)
182
183     {
184
185         super(msg);
186
187     }
188
189 /*
190
191     private String n;
192
193
194
195 * Construct an instance of the exception.
196
197 * @param name The name passed to Database.lookup that is not associated with
198
199 * any object in the database.
200
201
202
203     public ObjectNameNotFoundException(String name)
204
205   {
206
207         super();
208
209     n = name;
210
211   }
212
213
214
215
216
217 * Access the name that is not bound to any object in the database.
218
219 * @return The name that was passed to Database.lookup.
220
221
222
223   public String getName()
224
225   {
226
227     return n;
228
229   }
230
231 */

232
233 }
234
235
Popular Tags