1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.mdr.storagemodel.StorableClass; 22 import org.netbeans.mdr.storagemodel.StorableBaseObject; 23 import org.netbeans.mdr.storagemodel.StorableObject; 24 import org.netbeans.mdr.persistence.StorageException; 25 26 27 32 public abstract class SemiPersistentClass extends MetadataElementClass { 33 34 35 public SemiPersistentClass(StorableClass s) { 36 super(s); 37 } 38 39 protected SemiPersistentElement createTransient() { 40 try { 41 StorableBaseObject s = _getDelegate(); 42 DeferredObject o = new DeferredObject(null, s.getMdrStorage(), s.getImmediatePackageId(), s.getOutermostPackageId(), s.getMetaObject(), (StorableClass) s, null, true); 43 SemiPersistentElement result = (SemiPersistentElement) _getRepository().getHandler(o); 44 return result; 45 } catch (StorageException e) { 46 throw new RuntimeException (); 47 } 48 } 49 } 50 | Popular Tags |