KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.jdo.Extent;
15 import javax.jdo.PersistenceManager;
16 import java.util.Iterator JavaDoc;
17 import java.io.Serializable JavaDoc;
18
19 import com.versant.core.common.BindingSupportImpl;
20
21 /**
22  * @keep-all
23  */

24 public class DummyExtent implements Extent, Serializable JavaDoc {
25     private Class JavaDoc pcClass;
26     private boolean hasSubs;
27
28     public DummyExtent(Class JavaDoc pcClass, boolean hasSubs) {
29         this.pcClass = pcClass;
30         this.hasSubs = hasSubs;
31     }
32
33     public Iterator JavaDoc iterator() {
34         throw BindingSupportImpl.getInstance().notImplemented("");
35     }
36
37     public boolean hasSubclasses() {
38         return hasSubs;
39     }
40
41     public Class JavaDoc getCandidateClass() {
42         return pcClass;
43     }
44
45     public PersistenceManager getPersistenceManager() {
46         throw BindingSupportImpl.getInstance().notImplemented("");
47     }
48
49     public void closeAll() {
50         throw BindingSupportImpl.getInstance().notImplemented("");
51     }
52
53     public void close(Iterator JavaDoc it) {
54         throw BindingSupportImpl.getInstance().notImplemented("");
55     }
56 }
57
Popular Tags