KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > DeletedState


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo;
13
14 import com.versant.core.common.OID;
15 import com.versant.core.common.State;
16 import com.versant.core.metadata.ClassMetaData;
17 import com.versant.core.metadata.FetchGroup;
18 import com.versant.core.metadata.ModelMetaData;
19 import com.versant.core.server.OIDGraph;
20
21 import javax.jdo.spi.PersistenceCapable;
22 import java.io.IOException JavaDoc;
23 import java.io.ObjectInput JavaDoc;
24 import java.io.ObjectOutput JavaDoc;
25 import java.util.Date JavaDoc;
26
27 import com.versant.core.common.BindingSupportImpl;
28 import com.versant.core.common.PersistenceContext;
29 import com.versant.core.util.IntArray;
30 import com.versant.core.util.OIDObjectOutput;
31 import com.versant.core.util.OIDObjectInput;
32
33 /**
34  * This is a nonmutable state that is used for instance that is marked or deletion.
35  * This will trap any read/write to and from state.
36  */

37 public class DeletedState extends State {
38
39     public boolean isCacheble() {
40         return false;
41     }
42
43     public boolean isFieldNullorZero(int stateFieldNo) {
44         return false; //To change body of implemented methods use File | Settings | File Templates.
45
}
46
47     public boolean checkKeyFields(OID oid) {
48         throw BindingSupportImpl.getInstance().invalidOperation(
49                 "Not allowed to read/write to a instance marked for deletion");
50     }
51
52     public void setInternalBooleanFieldAbs(int field, boolean newValue) {
53         throw BindingSupportImpl.getInstance().invalidOperation(
54                 "Not allowed to read/write to a instance marked for deletion");
55     }
56
57     public void findDirectEdges(OIDGraph graph,
58             IntArray edges) {
59         throw BindingSupportImpl.getInstance().invalidOperation(
60                 "Not allowed to read/write to a instance marked for deletion");
61     }
62
63     public void setInternalIntField(int field, int newValue) {
64         throw BindingSupportImpl.getInstance().invalidOperation(
65                 "Not allowed to read/write to a instance marked for deletion");
66     }
67
68     public int getClassIndex() {
69         throw BindingSupportImpl.getInstance().invalidOperation(
70                 "Not allowed to read/write to a instance marked for deletion");
71     }
72
73     public void makeDirtyAbs(int fieldNo) {
74         throw BindingSupportImpl.getInstance().invalidOperation(
75                 "Not allowed to read/write to a instance marked for deletion");
76     }
77
78     public void setDoubleField(int stateFieldNo, double newValue) {
79         throw BindingSupportImpl.getInstance().invalidOperation(
80                 "Not allowed to read/write to a instance marked for deletion");
81     }
82
83     public int replaceSCOFields(PersistenceCapable owner,
84             VersantPersistenceManagerImp sm, int[] absFieldNos) {
85         throw BindingSupportImpl.getInstance().invalidOperation(
86                 "Not allowed to read/write to a instance marked for deletion");
87     }
88
89     public void setCharField(int stateFieldNo, char newValue) {
90         throw BindingSupportImpl.getInstance().invalidOperation(
91                 "Not allowed to read/write to a instance marked for deletion");
92     }
93
94     public void copyOptimisticLockingField(State state) {
95         throw BindingSupportImpl.getInstance().invalidOperation(
96                 "Not allowed to read/write to a instance marked for deletion");
97     }
98
99     public void clear() {
100     }
101
102     public void setStringField(int stateFieldNo, String JavaDoc newValue) {
103         throw BindingSupportImpl.getInstance().invalidOperation(
104                 "Not allowed to read/write to a instance marked for deletion");
105     }
106
107     public void setBooleanFieldAbs(int absFieldNo, boolean newValue) {
108         throw BindingSupportImpl.getInstance().invalidOperation(
109                 "Not allowed to read/write to a instance marked for deletion");
110     }
111
112     public void updateNonFilled(State state) {
113     }
114
115     public boolean isHollow() {
116         throw BindingSupportImpl.getInstance().invalidOperation(
117                 "Not allowed to read/write to a instance marked for deletion");
118     }
119
120     public void setInternalDoubleFieldAbs(int field, double newValue) {
121         throw BindingSupportImpl.getInstance().invalidOperation(
122                 "Not allowed to read/write to a instance marked for deletion");
123     }
124
125     public byte getByteField(int stateFieldNo) {
126         throw BindingSupportImpl.getInstance().invalidOperation(
127                 "Not allowed to read/write to a instance marked for deletion");
128     }
129
130     public void clearCollectionFields() {
131         throw BindingSupportImpl.getInstance().invalidOperation(
132                 "Not allowed to read/write to a instance marked for deletion");
133     }
134
135     public void setInternalShortFieldAbs(int field, short newValue) {
136         throw BindingSupportImpl.getInstance().invalidOperation(
137                 "Not allowed to read/write to a instance marked for deletion");
138     }
139
140     public void clearDirtyFields() {
141         throw BindingSupportImpl.getInstance().invalidOperation(
142                 "Not allowed to read/write to a instance marked for deletion");
143     }
144
145     public int compareToPass1(State state) {
146         throw BindingSupportImpl.getInstance().invalidOperation(
147                 "Not allowed to read/write to a instance marked for deletion");
148     }
149
150     public boolean fillToStoreState(State stateToStore, PersistenceContext sm,
151             VersantStateManager pcStateMan) {
152         throw BindingSupportImpl.getInstance().invalidOperation(
153                 "Not allowed to read/write to a instance marked for deletion");
154     }
155
156     public void updateAutoSetFieldsCreated(Date JavaDoc now) {
157         throw BindingSupportImpl.getInstance().invalidOperation(
158                 "Not allowed to read/write to a instance marked for deletion");
159     }
160
161     public boolean getBooleanFieldAbs(int absFieldNo) {
162         throw BindingSupportImpl.getInstance().invalidOperation(
163                 "Not allowed to read/write to a instance marked for deletion");
164     }
165
166     public void copyFieldsForOptimisticLocking(State state,
167             VersantPersistenceManagerImp sm) {
168         throw BindingSupportImpl.getInstance().invalidOperation(
169                 "Not allowed to read/write to a instance marked for deletion");
170     }
171
172     public void setByteFieldAbs(int absFieldNo, byte newValue) {
173         throw BindingSupportImpl.getInstance().invalidOperation(
174                 "Not allowed to read/write to a instance marked for deletion");
175     }
176
177     public char getCharField(int stateFieldNo) {
178         throw BindingSupportImpl.getInstance().invalidOperation(
179                 "Not allowed to read/write to a instance marked for deletion");
180     }
181
182     public void setInternalBooleanField(int field, boolean newValue) {
183         throw BindingSupportImpl.getInstance().invalidOperation(
184                 "Not allowed to read/write to a instance marked for deletion");
185     }
186
187     public boolean containFieldsAbs(int[] absFieldNos) {
188         throw BindingSupportImpl.getInstance().invalidOperation(
189                 "Not allowed to read/write to a instance marked for deletion");
190     }
191
192     public void setBooleanField(int stateFieldNo, boolean newValue) {
193         throw BindingSupportImpl.getInstance().invalidOperation(
194                 "Not allowed to read/write to a instance marked for deletion");
195     }
196
197     public void setStringFieldAbs(int absFieldNo, String JavaDoc newValue) {
198         throw BindingSupportImpl.getInstance().invalidOperation(
199                 "Not allowed to read/write to a instance marked for deletion");
200     }
201
202     public long getLongFieldAbs(int absFieldNo) {
203         throw BindingSupportImpl.getInstance().invalidOperation(
204                 "Not allowed to read/write to a instance marked for deletion");
205     }
206
207     public void setCharFieldAbs(int absFieldNo, char newValue) {
208         throw BindingSupportImpl.getInstance().invalidOperation(
209                 "Not allowed to read/write to a instance marked for deletion");
210     }
211
212     public void setInternalByteFieldAbs(int field, byte newValue) {
213         throw BindingSupportImpl.getInstance().invalidOperation(
214                 "Not allowed to read/write to a instance marked for deletion");
215     }
216
217
218     public void makeClean() {
219         throw BindingSupportImpl.getInstance().invalidOperation(
220                 "Not allowed to read/write to a instance marked for deletion");
221     }
222
223     public boolean containsFieldAbs(int absFieldNo) {
224         throw BindingSupportImpl.getInstance().invalidOperation(
225                 "Not allowed to read/write to a instance marked for deletion");
226     }
227
228     public void setClassMetaData(ClassMetaData cmd) {
229         throw BindingSupportImpl.getInstance().invalidOperation(
230                 "Not allowed to read/write to a instance marked for deletion");
231     }
232
233     public void clearNonFilled(State state) {
234         throw BindingSupportImpl.getInstance().invalidOperation(
235                 "Not allowed to read/write to a instance marked for deletion");
236     }
237
238     public void setInternalFloatFieldAbs(int field, float newValue) {
239         throw BindingSupportImpl.getInstance().invalidOperation(
240                 "Not allowed to read/write to a instance marked for deletion");
241     }
242
243     public void setInternalObjectFieldAbs(int field, Object JavaDoc newValue) {
244         throw BindingSupportImpl.getInstance().invalidOperation(
245                 "Not allowed to read/write to a instance marked for deletion");
246     }
247
248     public void clearNonAutoSetFields() {
249         throw BindingSupportImpl.getInstance().invalidOperation(
250                 "Not allowed to read/write to a instance marked for deletion");
251     }
252
253     public String JavaDoc getStringFieldAbs(int absFieldNo) {
254         throw BindingSupportImpl.getInstance().invalidOperation(
255                 "Not allowed to read/write to a instance marked for deletion");
256     }
257
258     public void setIntFieldAbs(int absFieldNo, int newValue) {
259         throw BindingSupportImpl.getInstance().invalidOperation(
260                 "Not allowed to read/write to a instance marked for deletion");
261     }
262
263     public int getFieldNos(int[] buf) {
264         throw BindingSupportImpl.getInstance().invalidOperation(
265                 "Not allowed to read/write to a instance marked for deletion");
266     }
267
268     public void updateAutoSetFieldsModified(Date JavaDoc now, State oldState) {
269         throw BindingSupportImpl.getInstance().invalidOperation(
270                 "Not allowed to read/write to a instance marked for deletion");
271     }
272
273     public void setInternalStringFieldAbs(int field, String JavaDoc newValue) {
274         throw BindingSupportImpl.getInstance().invalidOperation(
275                 "Not allowed to read/write to a instance marked for deletion");
276     }
277
278     public double getDoubleFieldAbs(int absFieldNo) {
279         throw BindingSupportImpl.getInstance().invalidOperation(
280                 "Not allowed to read/write to a instance marked for deletion");
281     }
282
283     public void setDoubleFieldAbs(int absFieldNo, double newValue) {
284         throw BindingSupportImpl.getInstance().invalidOperation(
285                 "Not allowed to read/write to a instance marked for deletion");
286     }
287
288     public void clearSCOFields() {
289         throw BindingSupportImpl.getInstance().invalidOperation(
290                 "Not allowed to read/write to a instance marked for deletion");
291     }
292
293     public boolean hasSameFields(State state) {
294         throw BindingSupportImpl.getInstance().invalidOperation(
295                 "Not allowed to read/write to a instance marked for deletion");
296     }
297
298     public short getShortFieldAbs(int absFieldNo) {
299         throw BindingSupportImpl.getInstance().invalidOperation(
300                 "Not allowed to read/write to a instance marked for deletion");
301     }
302
303     public void setShortField(int stateFieldNo, short newValue) {
304         throw BindingSupportImpl.getInstance().invalidOperation(
305                 "Not allowed to read/write to a instance marked for deletion");
306     }
307
308     public String JavaDoc getStringField(int stateFieldNo) {
309         throw BindingSupportImpl.getInstance().invalidOperation(
310                 "Not allowed to read/write to a instance marked for deletion");
311     }
312
313     public void copyKeyFields(OID oid) {
314         throw BindingSupportImpl.getInstance().invalidOperation(
315                 "Not allowed to read/write to a instance marked for deletion");
316     }
317
318     public byte getByteFieldAbs(int absFieldNo) {
319         throw BindingSupportImpl.getInstance().invalidOperation(
320                 "Not allowed to read/write to a instance marked for deletion");
321     }
322
323     public void setFloatFieldAbs(int absFieldNo, float newValue) {
324         throw BindingSupportImpl.getInstance().invalidOperation(
325                 "Not allowed to read/write to a instance marked for deletion");
326     }
327
328     public void setInternalShortField(int field, short newValue) {
329         throw BindingSupportImpl.getInstance().invalidOperation(
330                 "Not allowed to read/write to a instance marked for deletion");
331     }
332
333     public boolean containsValidAppIdFields() {
334         throw BindingSupportImpl.getInstance().invalidOperation(
335                 "Not allowed to read/write to a instance marked for deletion");
336     }
337
338     public void addRefs(VersantPersistenceManagerImp sm, PCStateMan pcStateMan) {
339     }
340
341     public Object JavaDoc getObjectField(int stateFieldNo, PersistenceCapable owningPC,
342             PersistenceContext sm, OID oid) {
343         throw BindingSupportImpl.getInstance().invalidOperation(
344                 "Not allowed to read/write to a instance marked for deletion");
345     }
346
347     public Object JavaDoc getInternalObjectField(int field) {
348         throw BindingSupportImpl.getInstance().invalidOperation(
349                 "Not allowed to read/write to a instance marked for deletion");
350     }
351
352     public void copyKeyFieldsUpdate(OID oid) {
353         throw BindingSupportImpl.getInstance().invalidOperation(
354                 "Not allowed to read/write to a instance marked for deletion");
355     }
356
357     public void setInternalCharField(int field, char newValue) {
358         throw BindingSupportImpl.getInstance().invalidOperation(
359                 "Not allowed to read/write to a instance marked for deletion");
360     }
361
362     public void setInternalFloatField(int field, float newValue) {
363         throw BindingSupportImpl.getInstance().invalidOperation(
364                 "Not allowed to read/write to a instance marked for deletion");
365     }
366
367     public void setInternalIntFieldAbs(int field, int newValue) {
368         throw BindingSupportImpl.getInstance().invalidOperation(
369                 "Not allowed to read/write to a instance marked for deletion");
370     }
371
372     public void setInternalCharFieldAbs(int field, char newValue) {
373         throw BindingSupportImpl.getInstance().invalidOperation(
374                 "Not allowed to read/write to a instance marked for deletion");
375     }
376
377     public double getDoubleField(int stateFieldNo) {
378         throw BindingSupportImpl.getInstance().invalidOperation(
379                 "Not allowed to read/write to a instance marked for deletion");
380     }
381
382     public float getFloatFieldAbs(int absFieldNo) {
383         throw BindingSupportImpl.getInstance().invalidOperation(
384                 "Not allowed to read/write to a instance marked for deletion");
385     }
386
387     public int getPass1FieldNos(int[] buf) {
388         throw BindingSupportImpl.getInstance().invalidOperation(
389                 "Not allowed to read/write to a instance marked for deletion");
390     }
391
392     public ClassMetaData getClassMetaData(ModelMetaData jmd) {
393         throw BindingSupportImpl.getInstance().invalidOperation(
394                 "Not allowed to read/write to a instance marked for deletion");
395     }
396
397     public ClassMetaData getClassMetaData() {
398         throw BindingSupportImpl.getInstance().invalidOperation(
399                 "Not allowed to read/write to a instance marked for deletion");
400     }
401
402     public char getCharFieldAbs(int absFieldNo) {
403         throw BindingSupportImpl.getInstance().invalidOperation(
404                 "Not allowed to read/write to a instance marked for deletion");
405     }
406
407     public State getCopy() {
408         throw BindingSupportImpl.getInstance().invalidOperation(
409                 "Not allowed to read/write to a instance marked for deletion");
410     }
411
412     public void setInternalDoubleField(int field, double newValue) {
413         throw BindingSupportImpl.getInstance().invalidOperation(
414                 "Not allowed to read/write to a instance marked for deletion");
415     }
416
417     public void setInternalLongFieldAbs(int field, long newValue) {
418         throw BindingSupportImpl.getInstance().invalidOperation(
419                 "Not allowed to read/write to a instance marked for deletion");
420     }
421
422     public void clearApplicationIdentityFields() {
423         throw BindingSupportImpl.getInstance().invalidOperation(
424                 "Not allowed to read/write to a instance marked for deletion");
425     }
426
427     public boolean isEmpty() {
428         throw BindingSupportImpl.getInstance().invalidOperation(
429                 "Not allowed to read/write to a instance marked for deletion");
430     }
431
432     public float getFloatField(int stateFieldNo) {
433         throw BindingSupportImpl.getInstance().invalidOperation(
434                 "Not allowed to read/write to a instance marked for deletion");
435     }
436
437     public void setInternalLongField(int field, long newValue) {
438         throw BindingSupportImpl.getInstance().invalidOperation(
439                 "Not allowed to read/write to a instance marked for deletion");
440     }
441
442     public void setLongFieldAbs(int absFieldNo, long newValue) {
443         throw BindingSupportImpl.getInstance().invalidOperation(
444                 "Not allowed to read/write to a instance marked for deletion");
445     }
446
447     public void setObjectField(int stateFieldNo, Object JavaDoc newValue) {
448         throw BindingSupportImpl.getInstance().invalidOperation(
449                 "Not allowed to read/write to a instance marked for deletion");
450     }
451
452     public void setInternalStringField(int field, String JavaDoc newValue) {
453         throw BindingSupportImpl.getInstance().invalidOperation(
454                 "Not allowed to read/write to a instance marked for deletion");
455     }
456
457     public boolean containsPass2Fields() {
458         throw BindingSupportImpl.getInstance().invalidOperation(
459                 "Not allowed to read/write to a instance marked for deletion");
460     }
461
462     public boolean isDirty() {
463         throw BindingSupportImpl.getInstance().invalidOperation(
464                 "Not allowed to read/write to a instance marked for deletion");
465     }
466
467     public boolean isDirty(int fieldNo) {
468         throw BindingSupportImpl.getInstance().invalidOperation(
469                 "Not allowed to read/write to a instance marked for deletion");
470     }
471
472     public void retrieve(VersantPersistenceManagerImp sm) {
473         throw BindingSupportImpl.getInstance().invalidOperation(
474                 "Not allowed to read/write to a instance marked for deletion");
475     }
476
477     public void clearTransactionNonPersistentFields() {
478         throw BindingSupportImpl.getInstance().invalidOperation(
479                 "Not allowed to read/write to a instance marked for deletion");
480     }
481
482     public void setObjectFieldAbs(int absFieldNo, Object JavaDoc newValue) {
483         throw BindingSupportImpl.getInstance().invalidOperation(
484                 "Not allowed to read/write to a instance marked for deletion");
485     }
486
487     public void setObjectFieldUnresolved(int field, Object JavaDoc newValue) {
488         throw BindingSupportImpl.getInstance().invalidOperation(
489                 "Not allowed to read/write to a instance marked for deletion");
490     }
491
492     public void setObjectFieldUnresolvedAbs(int field, Object JavaDoc newValue) {
493         throw BindingSupportImpl.getInstance().invalidOperation(
494                 "Not allowed to read/write to a instance marked for deletion");
495     }
496
497     public void setInternalObjectField(int field, Object JavaDoc newValue) {
498         throw BindingSupportImpl.getInstance().invalidOperation(
499                 "Not allowed to read/write to a instance marked for deletion");
500     }
501
502     public void setShortFieldAbs(int absFieldNo, short newValue) {
503         throw BindingSupportImpl.getInstance().invalidOperation(
504                 "Not allowed to read/write to a instance marked for deletion");
505     }
506
507     public boolean containsApplicationIdentityFields() {
508         throw BindingSupportImpl.getInstance().invalidOperation(
509                 "Not allowed to read/write to a instance marked for deletion");
510     }
511
512     public Object JavaDoc getInternalObjectFieldAbs(int field) {
513         throw BindingSupportImpl.getInstance().invalidOperation(
514                 "Not allowed to read/write to a instance marked for deletion");
515     }
516
517     public State newInstance() {
518         throw BindingSupportImpl.getInstance().invalidOperation(
519                 "Not allowed to read/write to a instance marked for deletion");
520     }
521
522     public short getShortField(int stateFieldNo) {
523         throw BindingSupportImpl.getInstance().invalidOperation(
524                 "Not allowed to read/write to a instance marked for deletion");
525     }
526
527     public boolean containsFetchGroup(FetchGroup fetchGroup) {
528         return true;
529     }
530
531     public Object JavaDoc getObjectFieldAbs(int absFieldNo,
532             PersistenceCapable owningPC, PersistenceContext sm,
533             OID oid) {
534         throw BindingSupportImpl.getInstance().invalidOperation(
535                 "Not allowed to read/write to a instance marked for deletion");
536     }
537
538     public void setFloatField(int stateFieldNo, float newValue) {
539         throw BindingSupportImpl.getInstance().invalidOperation(
540                 "Not allowed to read/write to a instance marked for deletion");
541     }
542
543     public void updateFrom(State state) {
544         throw BindingSupportImpl.getInstance().invalidOperation(
545                 "Not allowed to read/write to a instance marked for deletion");
546     }
547
548     public int getPass2FieldNos(int[] buf) {
549         throw BindingSupportImpl.getInstance().invalidOperation(
550                 "Not allowed to read/write to a instance marked for deletion");
551     }
552
553     public boolean containsPass1Fields() {
554         throw BindingSupportImpl.getInstance().invalidOperation(
555                 "Not allowed to read/write to a instance marked for deletion");
556     }
557
558     public void setIntField(int stateFieldNo, int newValue) {
559         throw BindingSupportImpl.getInstance().invalidOperation(
560                 "Not allowed to read/write to a instance marked for deletion");
561     }
562
563     public int getPass1FieldRefFieldNosWithNewOids(int[] stateFieldNoBuf) {
564         throw BindingSupportImpl.getInstance().invalidOperation(
565                 "Not allowed to read/write to a instance marked for deletion");
566     }
567
568     public boolean replaceNewObjectOIDs(int[] fieldNos, int fieldNosLength) {
569         throw BindingSupportImpl.getInstance().invalidOperation(
570                 "Not allowed to read/write to a instance marked for deletion");
571     }
572
573     public boolean hasSameNullFields(State state, State mask) {
574         throw BindingSupportImpl.getInstance().invalidOperation(
575                 "Not allowed to read/write to a instance marked for deletion");
576     }
577
578     public void unmanageSCOFields() {
579         throw BindingSupportImpl.getInstance().invalidOperation(
580                 "Not allowed to read/write to a instance marked for deletion");
581     }
582
583     public int getIntField(int stateFieldNo) {
584         throw BindingSupportImpl.getInstance().invalidOperation(
585                 "Not allowed to read/write to a instance marked for deletion");
586     }
587
588     public int getIntFieldAbs(int absFieldNo) {
589         throw BindingSupportImpl.getInstance().invalidOperation(
590                 "Not allowed to read/write to a instance marked for deletion");
591     }
592
593     public void setInternalByteField(int field, byte newValue) {
594         throw BindingSupportImpl.getInstance().invalidOperation(
595                 "Not allowed to read/write to a instance marked for deletion");
596     }
597
598     public String JavaDoc getVersion() {
599         throw BindingSupportImpl.getInstance().invalidOperation(
600                 "Not allowed to read/write to a instance marked for deletion");
601     }
602
603     public long getLongField(int stateFieldNo) {
604         throw BindingSupportImpl.getInstance().invalidOperation(
605                 "Not allowed to read/write to a instance marked for deletion");
606     }
607
608     public long getLongFieldInternal(int stateFieldNo) {
609         throw BindingSupportImpl.getInstance().invalidOperation(
610                 "Not allowed to read/write to a instance marked for deletion");
611     }
612
613     public void copyFields(OID oid) {
614         throw BindingSupportImpl.getInstance().invalidOperation(
615                 "Not allowed to read/write to a instance marked for deletion");
616     }
617
618     public boolean isNull(int stateFieldNo) {
619         throw BindingSupportImpl.getInstance().invalidOperation(
620                 "Not allowed to read/write to a instance marked for deletion");
621     }
622
623     public boolean getBooleanField(int stateFieldNo) {
624         throw BindingSupportImpl.getInstance().invalidOperation(
625                 "Not allowed to read/write to a instance marked for deletion");
626     }
627
628     public void setLongField(int stateFieldNo, long newValue) {
629         throw BindingSupportImpl.getInstance().invalidOperation(
630                 "Not allowed to read/write to a instance marked for deletion");
631     }
632
633     public boolean containFields(int[] stateFieldNos) {
634         throw BindingSupportImpl.getInstance().invalidOperation(
635                 "Not allowed to read/write to a instance marked for deletion");
636     }
637
638     public boolean containsField(int stateFieldNo) {
639         throw BindingSupportImpl.getInstance().invalidOperation(
640                 "Not allowed to read/write to a instance marked for deletion");
641     }
642
643     public void setByteField(int stateFieldNo, byte newValue) {
644         throw BindingSupportImpl.getInstance().invalidOperation(
645                 "Not allowed to read/write to a instance marked for deletion");
646     }
647
648     public void readExternal(ObjectInput JavaDoc in) throws IOException JavaDoc,
649             ClassNotFoundException JavaDoc {
650         //To change body of implemented methods use Options | File Templates.
651
}
652
653     public void writeExternal(ObjectOutput JavaDoc out) throws IOException JavaDoc {
654         //To change body of implemented methods use Options | File Templates.
655
}
656
657     /**
658      * Add all states referenced by fields in fg to the dcs.
659      */

660     public void addFetchGroupStatesToDCS(FetchGroup fg,
661             DetachStateContainer dcs, VersantPersistenceManagerImp pm,
662             OID oid) {
663         throw BindingSupportImpl.getInstance().invalidOperation(
664                 "Not allowed to read/write to a instance marked for deletion");
665     }
666
667     /**
668      * Is this state field nummber resolved for the Client
669      */

670     public boolean isResolvedForClient(int stateFieldNo) {
671         throw BindingSupportImpl.getInstance().invalidOperation(
672                 "Not allowed to read/write to a instance marked for deletion");
673     }
674
675     /**
676      * The value of the version field on the pc.
677      * This will return null if there are no version fields.
678      */

679     public Object JavaDoc getOptimisticLockingValue() {
680         throw BindingSupportImpl.getInstance().invalidOperation(
681                 "Not allowed to read/write to a instance marked for deletion");
682     }
683
684     private RuntimeException JavaDoc createBadMethodException() {
685         return BindingSupportImpl.getInstance().internal(
686                 "method should not be called");
687     }
688
689     public void setFilled(int field) {
690         throw createBadMethodException();
691     }
692
693     public void fillForRead(State dest,
694             VersantPersistenceManagerImp sm) {
695         throw createBadMethodException();
696     }
697
698     public void clearFilledFlags() {
699         throw createBadMethodException();
700     }
701
702     public void addOneToManyInverseFieldsForL2Evict(
703             VersantPersistenceManagerImp pm) {
704         throw createBadMethodException();
705     }
706
707     public void writeExternal(OIDObjectOutput os) throws IOException JavaDoc {
708         throw createBadMethodException();
709     }
710
711     public void readExternal(OIDObjectInput is) throws IOException JavaDoc,
712             ClassNotFoundException JavaDoc {
713         throw createBadMethodException();
714     }
715 }
716
Popular Tags