FileDocCategorySizeDatePackage
ObjectKeyImpl.javaAPI DocJava SE 5 API1708Fri Aug 26 14:54:22 BST 2005com.sun.corba.se.impl.ior

ObjectKeyImpl

public class ObjectKeyImpl extends Object implements com.sun.corba.se.spi.ior.ObjectKey
author

Fields Summary
private com.sun.corba.se.spi.ior.ObjectKeyTemplate
oktemp
private com.sun.corba.se.spi.ior.ObjectId
id
Constructors Summary
public ObjectKeyImpl(com.sun.corba.se.spi.ior.ObjectKeyTemplate oktemp, com.sun.corba.se.spi.ior.ObjectId id)

	this.oktemp = oktemp ;
	this.id = id ;
    
Methods Summary
public booleanequals(java.lang.Object obj)

	if (obj == null)
	    return false ;

	if (!(obj instanceof ObjectKeyImpl))
	    return false ;

	ObjectKeyImpl other = (ObjectKeyImpl)obj ;

	return oktemp.equals( other.oktemp ) &&
	    id.equals( other.id ) ;
    
public byte[]getBytes(org.omg.CORBA.ORB orb)

	EncapsOutputStream os = new EncapsOutputStream( (ORB)orb ) ;
	write( os ) ;
	return os.toByteArray() ;
    
public com.sun.corba.se.spi.ior.ObjectIdgetId()

	return id ;
    
public com.sun.corba.se.spi.protocol.CorbaServerRequestDispatchergetServerRequestDispatcher(com.sun.corba.se.spi.orb.ORB orb)

	return oktemp.getServerRequestDispatcher( orb, id ) ;
    
public com.sun.corba.se.spi.ior.ObjectKeyTemplategetTemplate()

	return oktemp ;
    
public inthashCode()

	return oktemp.hashCode() ^ id.hashCode() ;
    
public voidwrite(org.omg.CORBA_2_3.portable.OutputStream os)

	oktemp.write( id, os ) ;