1 2 12 package com.versant.core.jdo; 13 14 import javax.jdo.Extent; 15 import javax.jdo.PersistenceManager; 16 import java.util.Iterator ; 17 import java.io.Serializable ; 18 19 import com.versant.core.common.BindingSupportImpl; 20 21 24 public class DummyExtent implements Extent, Serializable { 25 private Class pcClass; 26 private boolean hasSubs; 27 28 public DummyExtent(Class pcClass, boolean hasSubs) { 29 this.pcClass = pcClass; 30 this.hasSubs = hasSubs; 31 } 32 33 public Iterator iterator() { 34 throw BindingSupportImpl.getInstance().notImplemented(""); 35 } 36 37 public boolean hasSubclasses() { 38 return hasSubs; 39 } 40 41 public Class 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 it) { 54 throw BindingSupportImpl.getInstance().notImplemented(""); 55 } 56 } 57 | Popular Tags |