01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdo;
12:
13: import javax.jdo.Extent;
14: import javax.jdo.PersistenceManager;
15: import java.util.Iterator;
16: import java.io.Serializable;
17:
18: import com.versant.core.common.BindingSupportImpl;
19:
20: /**
21: * @keep-all
22: */
23: public class DummyExtent implements Extent, Serializable {
24: private Class pcClass;
25: private boolean hasSubs;
26:
27: public DummyExtent(Class pcClass, boolean hasSubs) {
28: this .pcClass = pcClass;
29: this .hasSubs = hasSubs;
30: }
31:
32: public Iterator iterator() {
33: throw BindingSupportImpl.getInstance().notImplemented("");
34: }
35:
36: public boolean hasSubclasses() {
37: return hasSubs;
38: }
39:
40: public Class getCandidateClass() {
41: return pcClass;
42: }
43:
44: public PersistenceManager getPersistenceManager() {
45: throw BindingSupportImpl.getInstance().notImplemented("");
46: }
47:
48: public void closeAll() {
49: throw BindingSupportImpl.getInstance().notImplemented("");
50: }
51:
52: public void close(Iterator it) {
53: throw BindingSupportImpl.getInstance().notImplemented("");
54: }
55: }
|