Source Code Cross Referenced for DeletedState.java in  » Testing » PolePosition-0.20 » com » versant » core » jdo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » PolePosition 0.20 » com.versant.core.jdo 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 1998 - 2005 Versant Corporation
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         * Versant Corporation - initial API and implementation
010:         */
011:        package com.versant.core.jdo;
012:
013:        import com.versant.core.common.OID;
014:        import com.versant.core.common.State;
015:        import com.versant.core.metadata.ClassMetaData;
016:        import com.versant.core.metadata.FetchGroup;
017:        import com.versant.core.metadata.ModelMetaData;
018:        import com.versant.core.server.OIDGraph;
019:
020:        import javax.jdo.spi.PersistenceCapable;
021:        import java.io.IOException;
022:        import java.io.ObjectInput;
023:        import java.io.ObjectOutput;
024:        import java.util.Date;
025:
026:        import com.versant.core.common.BindingSupportImpl;
027:        import com.versant.core.common.PersistenceContext;
028:        import com.versant.core.util.IntArray;
029:        import com.versant.core.util.OIDObjectOutput;
030:        import com.versant.core.util.OIDObjectInput;
031:
032:        /**
033:         * This is a nonmutable state that is used for instance that is marked or deletion.
034:         * This will trap any read/write to and from state.
035:         */
036:        public class DeletedState extends State {
037:
038:            public boolean isCacheble() {
039:                return false;
040:            }
041:
042:            public boolean isFieldNullorZero(int stateFieldNo) {
043:                return false; //To change body of implemented methods use File | Settings | File Templates.
044:            }
045:
046:            public boolean checkKeyFields(OID oid) {
047:                throw BindingSupportImpl
048:                        .getInstance()
049:                        .invalidOperation(
050:                                "Not allowed to read/write to a instance marked for deletion");
051:            }
052:
053:            public void setInternalBooleanFieldAbs(int field, boolean newValue) {
054:                throw BindingSupportImpl
055:                        .getInstance()
056:                        .invalidOperation(
057:                                "Not allowed to read/write to a instance marked for deletion");
058:            }
059:
060:            public void findDirectEdges(OIDGraph graph, IntArray edges) {
061:                throw BindingSupportImpl
062:                        .getInstance()
063:                        .invalidOperation(
064:                                "Not allowed to read/write to a instance marked for deletion");
065:            }
066:
067:            public void setInternalIntField(int field, int newValue) {
068:                throw BindingSupportImpl
069:                        .getInstance()
070:                        .invalidOperation(
071:                                "Not allowed to read/write to a instance marked for deletion");
072:            }
073:
074:            public int getClassIndex() {
075:                throw BindingSupportImpl
076:                        .getInstance()
077:                        .invalidOperation(
078:                                "Not allowed to read/write to a instance marked for deletion");
079:            }
080:
081:            public void makeDirtyAbs(int fieldNo) {
082:                throw BindingSupportImpl
083:                        .getInstance()
084:                        .invalidOperation(
085:                                "Not allowed to read/write to a instance marked for deletion");
086:            }
087:
088:            public void setDoubleField(int stateFieldNo, double newValue) {
089:                throw BindingSupportImpl
090:                        .getInstance()
091:                        .invalidOperation(
092:                                "Not allowed to read/write to a instance marked for deletion");
093:            }
094:
095:            public int replaceSCOFields(PersistenceCapable owner,
096:                    VersantPersistenceManagerImp sm, int[] absFieldNos) {
097:                throw BindingSupportImpl
098:                        .getInstance()
099:                        .invalidOperation(
100:                                "Not allowed to read/write to a instance marked for deletion");
101:            }
102:
103:            public void setCharField(int stateFieldNo, char newValue) {
104:                throw BindingSupportImpl
105:                        .getInstance()
106:                        .invalidOperation(
107:                                "Not allowed to read/write to a instance marked for deletion");
108:            }
109:
110:            public void copyOptimisticLockingField(State state) {
111:                throw BindingSupportImpl
112:                        .getInstance()
113:                        .invalidOperation(
114:                                "Not allowed to read/write to a instance marked for deletion");
115:            }
116:
117:            public void clear() {
118:            }
119:
120:            public void setStringField(int stateFieldNo, String newValue) {
121:                throw BindingSupportImpl
122:                        .getInstance()
123:                        .invalidOperation(
124:                                "Not allowed to read/write to a instance marked for deletion");
125:            }
126:
127:            public void setBooleanFieldAbs(int absFieldNo, boolean newValue) {
128:                throw BindingSupportImpl
129:                        .getInstance()
130:                        .invalidOperation(
131:                                "Not allowed to read/write to a instance marked for deletion");
132:            }
133:
134:            public void updateNonFilled(State state) {
135:            }
136:
137:            public boolean isHollow() {
138:                throw BindingSupportImpl
139:                        .getInstance()
140:                        .invalidOperation(
141:                                "Not allowed to read/write to a instance marked for deletion");
142:            }
143:
144:            public void setInternalDoubleFieldAbs(int field, double newValue) {
145:                throw BindingSupportImpl
146:                        .getInstance()
147:                        .invalidOperation(
148:                                "Not allowed to read/write to a instance marked for deletion");
149:            }
150:
151:            public byte getByteField(int stateFieldNo) {
152:                throw BindingSupportImpl
153:                        .getInstance()
154:                        .invalidOperation(
155:                                "Not allowed to read/write to a instance marked for deletion");
156:            }
157:
158:            public void clearCollectionFields() {
159:                throw BindingSupportImpl
160:                        .getInstance()
161:                        .invalidOperation(
162:                                "Not allowed to read/write to a instance marked for deletion");
163:            }
164:
165:            public void setInternalShortFieldAbs(int field, short newValue) {
166:                throw BindingSupportImpl
167:                        .getInstance()
168:                        .invalidOperation(
169:                                "Not allowed to read/write to a instance marked for deletion");
170:            }
171:
172:            public void clearDirtyFields() {
173:                throw BindingSupportImpl
174:                        .getInstance()
175:                        .invalidOperation(
176:                                "Not allowed to read/write to a instance marked for deletion");
177:            }
178:
179:            public int compareToPass1(State state) {
180:                throw BindingSupportImpl
181:                        .getInstance()
182:                        .invalidOperation(
183:                                "Not allowed to read/write to a instance marked for deletion");
184:            }
185:
186:            public boolean fillToStoreState(State stateToStore,
187:                    PersistenceContext sm, VersantStateManager pcStateMan) {
188:                throw BindingSupportImpl
189:                        .getInstance()
190:                        .invalidOperation(
191:                                "Not allowed to read/write to a instance marked for deletion");
192:            }
193:
194:            public void updateAutoSetFieldsCreated(Date now) {
195:                throw BindingSupportImpl
196:                        .getInstance()
197:                        .invalidOperation(
198:                                "Not allowed to read/write to a instance marked for deletion");
199:            }
200:
201:            public boolean getBooleanFieldAbs(int absFieldNo) {
202:                throw BindingSupportImpl
203:                        .getInstance()
204:                        .invalidOperation(
205:                                "Not allowed to read/write to a instance marked for deletion");
206:            }
207:
208:            public void copyFieldsForOptimisticLocking(State state,
209:                    VersantPersistenceManagerImp sm) {
210:                throw BindingSupportImpl
211:                        .getInstance()
212:                        .invalidOperation(
213:                                "Not allowed to read/write to a instance marked for deletion");
214:            }
215:
216:            public void setByteFieldAbs(int absFieldNo, byte newValue) {
217:                throw BindingSupportImpl
218:                        .getInstance()
219:                        .invalidOperation(
220:                                "Not allowed to read/write to a instance marked for deletion");
221:            }
222:
223:            public char getCharField(int stateFieldNo) {
224:                throw BindingSupportImpl
225:                        .getInstance()
226:                        .invalidOperation(
227:                                "Not allowed to read/write to a instance marked for deletion");
228:            }
229:
230:            public void setInternalBooleanField(int field, boolean newValue) {
231:                throw BindingSupportImpl
232:                        .getInstance()
233:                        .invalidOperation(
234:                                "Not allowed to read/write to a instance marked for deletion");
235:            }
236:
237:            public boolean containFieldsAbs(int[] absFieldNos) {
238:                throw BindingSupportImpl
239:                        .getInstance()
240:                        .invalidOperation(
241:                                "Not allowed to read/write to a instance marked for deletion");
242:            }
243:
244:            public void setBooleanField(int stateFieldNo, boolean newValue) {
245:                throw BindingSupportImpl
246:                        .getInstance()
247:                        .invalidOperation(
248:                                "Not allowed to read/write to a instance marked for deletion");
249:            }
250:
251:            public void setStringFieldAbs(int absFieldNo, String newValue) {
252:                throw BindingSupportImpl
253:                        .getInstance()
254:                        .invalidOperation(
255:                                "Not allowed to read/write to a instance marked for deletion");
256:            }
257:
258:            public long getLongFieldAbs(int absFieldNo) {
259:                throw BindingSupportImpl
260:                        .getInstance()
261:                        .invalidOperation(
262:                                "Not allowed to read/write to a instance marked for deletion");
263:            }
264:
265:            public void setCharFieldAbs(int absFieldNo, char newValue) {
266:                throw BindingSupportImpl
267:                        .getInstance()
268:                        .invalidOperation(
269:                                "Not allowed to read/write to a instance marked for deletion");
270:            }
271:
272:            public void setInternalByteFieldAbs(int field, byte newValue) {
273:                throw BindingSupportImpl
274:                        .getInstance()
275:                        .invalidOperation(
276:                                "Not allowed to read/write to a instance marked for deletion");
277:            }
278:
279:            public void makeClean() {
280:                throw BindingSupportImpl
281:                        .getInstance()
282:                        .invalidOperation(
283:                                "Not allowed to read/write to a instance marked for deletion");
284:            }
285:
286:            public boolean containsFieldAbs(int absFieldNo) {
287:                throw BindingSupportImpl
288:                        .getInstance()
289:                        .invalidOperation(
290:                                "Not allowed to read/write to a instance marked for deletion");
291:            }
292:
293:            public void setClassMetaData(ClassMetaData cmd) {
294:                throw BindingSupportImpl
295:                        .getInstance()
296:                        .invalidOperation(
297:                                "Not allowed to read/write to a instance marked for deletion");
298:            }
299:
300:            public void clearNonFilled(State state) {
301:                throw BindingSupportImpl
302:                        .getInstance()
303:                        .invalidOperation(
304:                                "Not allowed to read/write to a instance marked for deletion");
305:            }
306:
307:            public void setInternalFloatFieldAbs(int field, float newValue) {
308:                throw BindingSupportImpl
309:                        .getInstance()
310:                        .invalidOperation(
311:                                "Not allowed to read/write to a instance marked for deletion");
312:            }
313:
314:            public void setInternalObjectFieldAbs(int field, Object newValue) {
315:                throw BindingSupportImpl
316:                        .getInstance()
317:                        .invalidOperation(
318:                                "Not allowed to read/write to a instance marked for deletion");
319:            }
320:
321:            public void clearNonAutoSetFields() {
322:                throw BindingSupportImpl
323:                        .getInstance()
324:                        .invalidOperation(
325:                                "Not allowed to read/write to a instance marked for deletion");
326:            }
327:
328:            public String getStringFieldAbs(int absFieldNo) {
329:                throw BindingSupportImpl
330:                        .getInstance()
331:                        .invalidOperation(
332:                                "Not allowed to read/write to a instance marked for deletion");
333:            }
334:
335:            public void setIntFieldAbs(int absFieldNo, int newValue) {
336:                throw BindingSupportImpl
337:                        .getInstance()
338:                        .invalidOperation(
339:                                "Not allowed to read/write to a instance marked for deletion");
340:            }
341:
342:            public int getFieldNos(int[] buf) {
343:                throw BindingSupportImpl
344:                        .getInstance()
345:                        .invalidOperation(
346:                                "Not allowed to read/write to a instance marked for deletion");
347:            }
348:
349:            public void updateAutoSetFieldsModified(Date now, State oldState) {
350:                throw BindingSupportImpl
351:                        .getInstance()
352:                        .invalidOperation(
353:                                "Not allowed to read/write to a instance marked for deletion");
354:            }
355:
356:            public void setInternalStringFieldAbs(int field, String newValue) {
357:                throw BindingSupportImpl
358:                        .getInstance()
359:                        .invalidOperation(
360:                                "Not allowed to read/write to a instance marked for deletion");
361:            }
362:
363:            public double getDoubleFieldAbs(int absFieldNo) {
364:                throw BindingSupportImpl
365:                        .getInstance()
366:                        .invalidOperation(
367:                                "Not allowed to read/write to a instance marked for deletion");
368:            }
369:
370:            public void setDoubleFieldAbs(int absFieldNo, double newValue) {
371:                throw BindingSupportImpl
372:                        .getInstance()
373:                        .invalidOperation(
374:                                "Not allowed to read/write to a instance marked for deletion");
375:            }
376:
377:            public void clearSCOFields() {
378:                throw BindingSupportImpl
379:                        .getInstance()
380:                        .invalidOperation(
381:                                "Not allowed to read/write to a instance marked for deletion");
382:            }
383:
384:            public boolean hasSameFields(State state) {
385:                throw BindingSupportImpl
386:                        .getInstance()
387:                        .invalidOperation(
388:                                "Not allowed to read/write to a instance marked for deletion");
389:            }
390:
391:            public short getShortFieldAbs(int absFieldNo) {
392:                throw BindingSupportImpl
393:                        .getInstance()
394:                        .invalidOperation(
395:                                "Not allowed to read/write to a instance marked for deletion");
396:            }
397:
398:            public void setShortField(int stateFieldNo, short newValue) {
399:                throw BindingSupportImpl
400:                        .getInstance()
401:                        .invalidOperation(
402:                                "Not allowed to read/write to a instance marked for deletion");
403:            }
404:
405:            public String getStringField(int stateFieldNo) {
406:                throw BindingSupportImpl
407:                        .getInstance()
408:                        .invalidOperation(
409:                                "Not allowed to read/write to a instance marked for deletion");
410:            }
411:
412:            public void copyKeyFields(OID oid) {
413:                throw BindingSupportImpl
414:                        .getInstance()
415:                        .invalidOperation(
416:                                "Not allowed to read/write to a instance marked for deletion");
417:            }
418:
419:            public byte getByteFieldAbs(int absFieldNo) {
420:                throw BindingSupportImpl
421:                        .getInstance()
422:                        .invalidOperation(
423:                                "Not allowed to read/write to a instance marked for deletion");
424:            }
425:
426:            public void setFloatFieldAbs(int absFieldNo, float newValue) {
427:                throw BindingSupportImpl
428:                        .getInstance()
429:                        .invalidOperation(
430:                                "Not allowed to read/write to a instance marked for deletion");
431:            }
432:
433:            public void setInternalShortField(int field, short newValue) {
434:                throw BindingSupportImpl
435:                        .getInstance()
436:                        .invalidOperation(
437:                                "Not allowed to read/write to a instance marked for deletion");
438:            }
439:
440:            public boolean containsValidAppIdFields() {
441:                throw BindingSupportImpl
442:                        .getInstance()
443:                        .invalidOperation(
444:                                "Not allowed to read/write to a instance marked for deletion");
445:            }
446:
447:            public void addRefs(VersantPersistenceManagerImp sm,
448:                    PCStateMan pcStateMan) {
449:            }
450:
451:            public Object getObjectField(int stateFieldNo,
452:                    PersistenceCapable owningPC, PersistenceContext sm, OID oid) {
453:                throw BindingSupportImpl
454:                        .getInstance()
455:                        .invalidOperation(
456:                                "Not allowed to read/write to a instance marked for deletion");
457:            }
458:
459:            public Object getInternalObjectField(int field) {
460:                throw BindingSupportImpl
461:                        .getInstance()
462:                        .invalidOperation(
463:                                "Not allowed to read/write to a instance marked for deletion");
464:            }
465:
466:            public void copyKeyFieldsUpdate(OID oid) {
467:                throw BindingSupportImpl
468:                        .getInstance()
469:                        .invalidOperation(
470:                                "Not allowed to read/write to a instance marked for deletion");
471:            }
472:
473:            public void setInternalCharField(int field, char newValue) {
474:                throw BindingSupportImpl
475:                        .getInstance()
476:                        .invalidOperation(
477:                                "Not allowed to read/write to a instance marked for deletion");
478:            }
479:
480:            public void setInternalFloatField(int field, float newValue) {
481:                throw BindingSupportImpl
482:                        .getInstance()
483:                        .invalidOperation(
484:                                "Not allowed to read/write to a instance marked for deletion");
485:            }
486:
487:            public void setInternalIntFieldAbs(int field, int newValue) {
488:                throw BindingSupportImpl
489:                        .getInstance()
490:                        .invalidOperation(
491:                                "Not allowed to read/write to a instance marked for deletion");
492:            }
493:
494:            public void setInternalCharFieldAbs(int field, char newValue) {
495:                throw BindingSupportImpl
496:                        .getInstance()
497:                        .invalidOperation(
498:                                "Not allowed to read/write to a instance marked for deletion");
499:            }
500:
501:            public double getDoubleField(int stateFieldNo) {
502:                throw BindingSupportImpl
503:                        .getInstance()
504:                        .invalidOperation(
505:                                "Not allowed to read/write to a instance marked for deletion");
506:            }
507:
508:            public float getFloatFieldAbs(int absFieldNo) {
509:                throw BindingSupportImpl
510:                        .getInstance()
511:                        .invalidOperation(
512:                                "Not allowed to read/write to a instance marked for deletion");
513:            }
514:
515:            public int getPass1FieldNos(int[] buf) {
516:                throw BindingSupportImpl
517:                        .getInstance()
518:                        .invalidOperation(
519:                                "Not allowed to read/write to a instance marked for deletion");
520:            }
521:
522:            public ClassMetaData getClassMetaData(ModelMetaData jmd) {
523:                throw BindingSupportImpl
524:                        .getInstance()
525:                        .invalidOperation(
526:                                "Not allowed to read/write to a instance marked for deletion");
527:            }
528:
529:            public ClassMetaData getClassMetaData() {
530:                throw BindingSupportImpl
531:                        .getInstance()
532:                        .invalidOperation(
533:                                "Not allowed to read/write to a instance marked for deletion");
534:            }
535:
536:            public char getCharFieldAbs(int absFieldNo) {
537:                throw BindingSupportImpl
538:                        .getInstance()
539:                        .invalidOperation(
540:                                "Not allowed to read/write to a instance marked for deletion");
541:            }
542:
543:            public State getCopy() {
544:                throw BindingSupportImpl
545:                        .getInstance()
546:                        .invalidOperation(
547:                                "Not allowed to read/write to a instance marked for deletion");
548:            }
549:
550:            public void setInternalDoubleField(int field, double newValue) {
551:                throw BindingSupportImpl
552:                        .getInstance()
553:                        .invalidOperation(
554:                                "Not allowed to read/write to a instance marked for deletion");
555:            }
556:
557:            public void setInternalLongFieldAbs(int field, long newValue) {
558:                throw BindingSupportImpl
559:                        .getInstance()
560:                        .invalidOperation(
561:                                "Not allowed to read/write to a instance marked for deletion");
562:            }
563:
564:            public void clearApplicationIdentityFields() {
565:                throw BindingSupportImpl
566:                        .getInstance()
567:                        .invalidOperation(
568:                                "Not allowed to read/write to a instance marked for deletion");
569:            }
570:
571:            public boolean isEmpty() {
572:                throw BindingSupportImpl
573:                        .getInstance()
574:                        .invalidOperation(
575:                                "Not allowed to read/write to a instance marked for deletion");
576:            }
577:
578:            public float getFloatField(int stateFieldNo) {
579:                throw BindingSupportImpl
580:                        .getInstance()
581:                        .invalidOperation(
582:                                "Not allowed to read/write to a instance marked for deletion");
583:            }
584:
585:            public void setInternalLongField(int field, long newValue) {
586:                throw BindingSupportImpl
587:                        .getInstance()
588:                        .invalidOperation(
589:                                "Not allowed to read/write to a instance marked for deletion");
590:            }
591:
592:            public void setLongFieldAbs(int absFieldNo, long newValue) {
593:                throw BindingSupportImpl
594:                        .getInstance()
595:                        .invalidOperation(
596:                                "Not allowed to read/write to a instance marked for deletion");
597:            }
598:
599:            public void setObjectField(int stateFieldNo, Object newValue) {
600:                throw BindingSupportImpl
601:                        .getInstance()
602:                        .invalidOperation(
603:                                "Not allowed to read/write to a instance marked for deletion");
604:            }
605:
606:            public void setInternalStringField(int field, String newValue) {
607:                throw BindingSupportImpl
608:                        .getInstance()
609:                        .invalidOperation(
610:                                "Not allowed to read/write to a instance marked for deletion");
611:            }
612:
613:            public boolean containsPass2Fields() {
614:                throw BindingSupportImpl
615:                        .getInstance()
616:                        .invalidOperation(
617:                                "Not allowed to read/write to a instance marked for deletion");
618:            }
619:
620:            public boolean isDirty() {
621:                throw BindingSupportImpl
622:                        .getInstance()
623:                        .invalidOperation(
624:                                "Not allowed to read/write to a instance marked for deletion");
625:            }
626:
627:            public boolean isDirty(int fieldNo) {
628:                throw BindingSupportImpl
629:                        .getInstance()
630:                        .invalidOperation(
631:                                "Not allowed to read/write to a instance marked for deletion");
632:            }
633:
634:            public void retrieve(VersantPersistenceManagerImp sm) {
635:                throw BindingSupportImpl
636:                        .getInstance()
637:                        .invalidOperation(
638:                                "Not allowed to read/write to a instance marked for deletion");
639:            }
640:
641:            public void clearTransactionNonPersistentFields() {
642:                throw BindingSupportImpl
643:                        .getInstance()
644:                        .invalidOperation(
645:                                "Not allowed to read/write to a instance marked for deletion");
646:            }
647:
648:            public void setObjectFieldAbs(int absFieldNo, Object newValue) {
649:                throw BindingSupportImpl
650:                        .getInstance()
651:                        .invalidOperation(
652:                                "Not allowed to read/write to a instance marked for deletion");
653:            }
654:
655:            public void setObjectFieldUnresolved(int field, Object newValue) {
656:                throw BindingSupportImpl
657:                        .getInstance()
658:                        .invalidOperation(
659:                                "Not allowed to read/write to a instance marked for deletion");
660:            }
661:
662:            public void setObjectFieldUnresolvedAbs(int field, Object newValue) {
663:                throw BindingSupportImpl
664:                        .getInstance()
665:                        .invalidOperation(
666:                                "Not allowed to read/write to a instance marked for deletion");
667:            }
668:
669:            public void setInternalObjectField(int field, Object newValue) {
670:                throw BindingSupportImpl
671:                        .getInstance()
672:                        .invalidOperation(
673:                                "Not allowed to read/write to a instance marked for deletion");
674:            }
675:
676:            public void setShortFieldAbs(int absFieldNo, short newValue) {
677:                throw BindingSupportImpl
678:                        .getInstance()
679:                        .invalidOperation(
680:                                "Not allowed to read/write to a instance marked for deletion");
681:            }
682:
683:            public boolean containsApplicationIdentityFields() {
684:                throw BindingSupportImpl
685:                        .getInstance()
686:                        .invalidOperation(
687:                                "Not allowed to read/write to a instance marked for deletion");
688:            }
689:
690:            public Object getInternalObjectFieldAbs(int field) {
691:                throw BindingSupportImpl
692:                        .getInstance()
693:                        .invalidOperation(
694:                                "Not allowed to read/write to a instance marked for deletion");
695:            }
696:
697:            public State newInstance() {
698:                throw BindingSupportImpl
699:                        .getInstance()
700:                        .invalidOperation(
701:                                "Not allowed to read/write to a instance marked for deletion");
702:            }
703:
704:            public short getShortField(int stateFieldNo) {
705:                throw BindingSupportImpl
706:                        .getInstance()
707:                        .invalidOperation(
708:                                "Not allowed to read/write to a instance marked for deletion");
709:            }
710:
711:            public boolean containsFetchGroup(FetchGroup fetchGroup) {
712:                return true;
713:            }
714:
715:            public Object getObjectFieldAbs(int absFieldNo,
716:                    PersistenceCapable owningPC, PersistenceContext sm, OID oid) {
717:                throw BindingSupportImpl
718:                        .getInstance()
719:                        .invalidOperation(
720:                                "Not allowed to read/write to a instance marked for deletion");
721:            }
722:
723:            public void setFloatField(int stateFieldNo, float newValue) {
724:                throw BindingSupportImpl
725:                        .getInstance()
726:                        .invalidOperation(
727:                                "Not allowed to read/write to a instance marked for deletion");
728:            }
729:
730:            public void updateFrom(State state) {
731:                throw BindingSupportImpl
732:                        .getInstance()
733:                        .invalidOperation(
734:                                "Not allowed to read/write to a instance marked for deletion");
735:            }
736:
737:            public int getPass2FieldNos(int[] buf) {
738:                throw BindingSupportImpl
739:                        .getInstance()
740:                        .invalidOperation(
741:                                "Not allowed to read/write to a instance marked for deletion");
742:            }
743:
744:            public boolean containsPass1Fields() {
745:                throw BindingSupportImpl
746:                        .getInstance()
747:                        .invalidOperation(
748:                                "Not allowed to read/write to a instance marked for deletion");
749:            }
750:
751:            public void setIntField(int stateFieldNo, int newValue) {
752:                throw BindingSupportImpl
753:                        .getInstance()
754:                        .invalidOperation(
755:                                "Not allowed to read/write to a instance marked for deletion");
756:            }
757:
758:            public int getPass1FieldRefFieldNosWithNewOids(int[] stateFieldNoBuf) {
759:                throw BindingSupportImpl
760:                        .getInstance()
761:                        .invalidOperation(
762:                                "Not allowed to read/write to a instance marked for deletion");
763:            }
764:
765:            public boolean replaceNewObjectOIDs(int[] fieldNos,
766:                    int fieldNosLength) {
767:                throw BindingSupportImpl
768:                        .getInstance()
769:                        .invalidOperation(
770:                                "Not allowed to read/write to a instance marked for deletion");
771:            }
772:
773:            public boolean hasSameNullFields(State state, State mask) {
774:                throw BindingSupportImpl
775:                        .getInstance()
776:                        .invalidOperation(
777:                                "Not allowed to read/write to a instance marked for deletion");
778:            }
779:
780:            public void unmanageSCOFields() {
781:                throw BindingSupportImpl
782:                        .getInstance()
783:                        .invalidOperation(
784:                                "Not allowed to read/write to a instance marked for deletion");
785:            }
786:
787:            public int getIntField(int stateFieldNo) {
788:                throw BindingSupportImpl
789:                        .getInstance()
790:                        .invalidOperation(
791:                                "Not allowed to read/write to a instance marked for deletion");
792:            }
793:
794:            public int getIntFieldAbs(int absFieldNo) {
795:                throw BindingSupportImpl
796:                        .getInstance()
797:                        .invalidOperation(
798:                                "Not allowed to read/write to a instance marked for deletion");
799:            }
800:
801:            public void setInternalByteField(int field, byte newValue) {
802:                throw BindingSupportImpl
803:                        .getInstance()
804:                        .invalidOperation(
805:                                "Not allowed to read/write to a instance marked for deletion");
806:            }
807:
808:            public String getVersion() {
809:                throw BindingSupportImpl
810:                        .getInstance()
811:                        .invalidOperation(
812:                                "Not allowed to read/write to a instance marked for deletion");
813:            }
814:
815:            public long getLongField(int stateFieldNo) {
816:                throw BindingSupportImpl
817:                        .getInstance()
818:                        .invalidOperation(
819:                                "Not allowed to read/write to a instance marked for deletion");
820:            }
821:
822:            public long getLongFieldInternal(int stateFieldNo) {
823:                throw BindingSupportImpl
824:                        .getInstance()
825:                        .invalidOperation(
826:                                "Not allowed to read/write to a instance marked for deletion");
827:            }
828:
829:            public void copyFields(OID oid) {
830:                throw BindingSupportImpl
831:                        .getInstance()
832:                        .invalidOperation(
833:                                "Not allowed to read/write to a instance marked for deletion");
834:            }
835:
836:            public boolean isNull(int stateFieldNo) {
837:                throw BindingSupportImpl
838:                        .getInstance()
839:                        .invalidOperation(
840:                                "Not allowed to read/write to a instance marked for deletion");
841:            }
842:
843:            public boolean getBooleanField(int stateFieldNo) {
844:                throw BindingSupportImpl
845:                        .getInstance()
846:                        .invalidOperation(
847:                                "Not allowed to read/write to a instance marked for deletion");
848:            }
849:
850:            public void setLongField(int stateFieldNo, long newValue) {
851:                throw BindingSupportImpl
852:                        .getInstance()
853:                        .invalidOperation(
854:                                "Not allowed to read/write to a instance marked for deletion");
855:            }
856:
857:            public boolean containFields(int[] stateFieldNos) {
858:                throw BindingSupportImpl
859:                        .getInstance()
860:                        .invalidOperation(
861:                                "Not allowed to read/write to a instance marked for deletion");
862:            }
863:
864:            public boolean containsField(int stateFieldNo) {
865:                throw BindingSupportImpl
866:                        .getInstance()
867:                        .invalidOperation(
868:                                "Not allowed to read/write to a instance marked for deletion");
869:            }
870:
871:            public void setByteField(int stateFieldNo, byte newValue) {
872:                throw BindingSupportImpl
873:                        .getInstance()
874:                        .invalidOperation(
875:                                "Not allowed to read/write to a instance marked for deletion");
876:            }
877:
878:            public void readExternal(ObjectInput in) throws IOException,
879:                    ClassNotFoundException {
880:                //To change body of implemented methods use Options | File Templates.
881:            }
882:
883:            public void writeExternal(ObjectOutput out) throws IOException {
884:                //To change body of implemented methods use Options | File Templates.
885:            }
886:
887:            /**
888:             * Add all states referenced by fields in fg to the dcs.
889:             */
890:            public void addFetchGroupStatesToDCS(FetchGroup fg,
891:                    DetachStateContainer dcs, VersantPersistenceManagerImp pm,
892:                    OID oid) {
893:                throw BindingSupportImpl
894:                        .getInstance()
895:                        .invalidOperation(
896:                                "Not allowed to read/write to a instance marked for deletion");
897:            }
898:
899:            /**
900:             * Is this state field nummber resolved for the Client
901:             */
902:            public boolean isResolvedForClient(int stateFieldNo) {
903:                throw BindingSupportImpl
904:                        .getInstance()
905:                        .invalidOperation(
906:                                "Not allowed to read/write to a instance marked for deletion");
907:            }
908:
909:            /**
910:             * The value of the version field on the pc.
911:             * This will return null if there are no version fields.
912:             */
913:            public Object getOptimisticLockingValue() {
914:                throw BindingSupportImpl
915:                        .getInstance()
916:                        .invalidOperation(
917:                                "Not allowed to read/write to a instance marked for deletion");
918:            }
919:
920:            private RuntimeException createBadMethodException() {
921:                return BindingSupportImpl.getInstance().internal(
922:                        "method should not be called");
923:            }
924:
925:            public void setFilled(int field) {
926:                throw createBadMethodException();
927:            }
928:
929:            public void fillForRead(State dest, VersantPersistenceManagerImp sm) {
930:                throw createBadMethodException();
931:            }
932:
933:            public void clearFilledFlags() {
934:                throw createBadMethodException();
935:            }
936:
937:            public void addOneToManyInverseFieldsForL2Evict(
938:                    VersantPersistenceManagerImp pm) {
939:                throw createBadMethodException();
940:            }
941:
942:            public void writeExternal(OIDObjectOutput os) throws IOException {
943:                throw createBadMethodException();
944:            }
945:
946:            public void readExternal(OIDObjectInput is) throws IOException,
947:                    ClassNotFoundException {
948:                throw createBadMethodException();
949:            }
950:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.