1 23 package org.objectweb.jorm.runtime; 24 25 import org.objectweb.jorm.api.PException; 26 import org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdPNG; 27 28 32 public class PolyIdPNG implements PolymorphIdPNG { 33 public long cid = -1; 34 public long oid = -1; 35 36 public PolyIdPNG() { 37 } 38 39 public PolyIdPNG(long cid, long oid) { 40 this.cid = cid; 41 this.oid = oid; 42 } 43 44 public long pnGetObjectId(Object o) throws PException { 45 return oid; 46 } 47 48 public long pnGetClassId(Object o) throws PException { 49 return cid; 50 } 51 52 } 53 | Popular Tags |