001: package org.odmg;
002:
003: /**
004:
005: * An attempt to get a object via its name using <code>Database.lookup</code>
006:
007: * and the name is not associated with an object in the database.
008:
009: * @author David Jordan (as Java Editor of the Object Data Management Group)
010:
011: * @version ODMG 3.0
012:
013: * @see org.odmg.Database#lookup
014:
015: */
016:
017: public class ObjectNameNotFoundException extends ODMGException
018:
019: {
020:
021: /*
022:
023: private String n;
024:
025:
026:
027: * Construct an instance of the exception.
028:
029: * @param name The name passed to Database.lookup that is not associated with
030:
031: * any object in the database.
032:
033:
034:
035: public ObjectNameNotFoundException(String name)
036:
037: {
038:
039: super();
040:
041: n = name;
042:
043: }
044:
045:
046:
047:
048:
049: * Access the name that is not bound to any object in the database.
050:
051: * @return The name that was passed to Database.lookup.
052:
053:
054:
055: public String getName()
056:
057: {
058:
059: return n;
060:
061: }
062:
063: */
064:
065: /*
066:
067: private String n;
068:
069:
070:
071: * Construct an instance of the exception.
072:
073: * @param name The name passed to Database.lookup that is not associated with
074:
075: * any object in the database.
076:
077:
078:
079: public ObjectNameNotFoundException(String name)
080:
081: {
082:
083: super();
084:
085: n = name;
086:
087: }
088:
089:
090:
091:
092:
093: * Access the name that is not bound to any object in the database.
094:
095: * @return The name that was passed to Database.lookup.
096:
097:
098:
099: public String getName()
100:
101: {
102:
103: return n;
104:
105: }
106:
107: */
108:
109: /*
110:
111: private String n;
112:
113:
114:
115: * Construct an instance of the exception.
116:
117: * @param name The name passed to Database.lookup that is not associated with
118:
119: * any object in the database.
120:
121:
122:
123: public ObjectNameNotFoundException(String name)
124:
125: {
126:
127: super();
128:
129: n = name;
130:
131: }
132:
133:
134:
135:
136:
137: * Access the name that is not bound to any object in the database.
138:
139: * @return The name that was passed to Database.lookup.
140:
141:
142:
143: public String getName()
144:
145: {
146:
147: return n;
148:
149: }
150:
151: */
152:
153: /**
154:
155: * Construct an instance of the exception.
156:
157: */
158:
159: public ObjectNameNotFoundException()
160:
161: {
162:
163: super ();
164:
165: }
166:
167: /**
168:
169: * Construct an instance of the exception with a descriptive message.
170:
171: * @param msg A message describing the exception.
172:
173: */
174:
175: public ObjectNameNotFoundException(String msg)
176:
177: {
178:
179: super (msg);
180:
181: }
182:
183: /*
184:
185: private String n;
186:
187:
188:
189: * Construct an instance of the exception.
190:
191: * @param name The name passed to Database.lookup that is not associated with
192:
193: * any object in the database.
194:
195:
196:
197: public ObjectNameNotFoundException(String name)
198:
199: {
200:
201: super();
202:
203: n = name;
204:
205: }
206:
207:
208:
209:
210:
211: * Access the name that is not bound to any object in the database.
212:
213: * @return The name that was passed to Database.lookup.
214:
215:
216:
217: public String getName()
218:
219: {
220:
221: return n;
222:
223: }
224:
225: */
226:
227: }
|