FileDocCategorySizeDatePackage
OldPOAObjectKeyTemplate.javaAPI DocJava SE 6 API2135Tue Jun 10 00:21:34 BST 2008com.sun.corba.se.impl.ior

OldPOAObjectKeyTemplate

public final class OldPOAObjectKeyTemplate extends OldObjectKeyTemplateBase
author
Ken Cavanaugh

Fields Summary
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.ORBVersiongetORBVersion()

	if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_OLD)
	    return ORBVersionFactory.getOLD() ;
	else if (getMagic() == ObjectKeyFactoryImpl.JAVAMAGIC_NEW)
	    return ORBVersionFactory.getNEW() ;
	else
	    throw new INTERNAL() ;
    
public voidwriteTemplate(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 ) ;