OldPOAObjectKeyTemplatepublic final class OldPOAObjectKeyTemplate extends OldObjectKeyTemplateBase
Constructors Summary |
---|
public OldPOAObjectKeyTemplate(com.sun.corba.se.spi.orb.ORB orb, int magic, int scid, org.omg.CORBA_2_3.portable.InputStream is)This constructor reads the template ONLY from the stream
this( orb, magic, scid, is.read_long(), is.read_long(), is.read_long() ) ;
| public OldPOAObjectKeyTemplate(com.sun.corba.se.spi.orb.ORB orb, int magic, int scid, org.omg.CORBA_2_3.portable.InputStream is, org.omg.CORBA.OctetSeqHolder osh)This constructor reads a complete ObjectKey (template and Id)
from the stream.
this( orb, magic, scid, is ) ;
osh.value = readObjectKey( is ) ;
| public OldPOAObjectKeyTemplate(com.sun.corba.se.spi.orb.ORB orb, int magic, int scid, int serverid, int orbid, int poaid)
super( orb, magic, scid, serverid,
Integer.toString( orbid ),
new ObjectAdapterIdNumber( poaid ) ) ;
|
Methods Summary |
---|
public com.sun.corba.se.spi.orb.ORBVersion | getORBVersion()
if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
return ORBVersionFactory.getOLD() ;
else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
return ORBVersionFactory.getNEW() ;
else
throw new INTERNAL() ;
| public void | writeTemplate(org.omg.CORBA_2_3.portable.OutputStream os)
os.write_long( getMagic() ) ;
os.write_long( getSubcontractId() ) ;
os.write_long( getServerId() ) ;
int orbid = Integer.parseInt( getORBId() ) ;
os.write_long( orbid ) ;
ObjectAdapterIdNumber oaid = (ObjectAdapterIdNumber)(getObjectAdapterId()) ;
int poaid = oaid.getOldPOAId() ;
os.write_long( poaid ) ;
|
|