// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

public final class BidClientImpl_Stub
    extends java.rmi.server.RemoteStub
    implements BidClient, java.rmi.Remote
{
    private static final java.rmi.server.Operation[] operations = {
	new java.rmi.server.Operation("void friend(BidClient)"),
	new java.rmi.server.Operation("void purchase(BidClient, java.lang.String, int)"),
	new java.rmi.server.Operation("void sale(BidClient, java.lang.String, int)"),
	new java.rmi.server.Operation("void updateBidList(java.util.Vector)"),
	new java.rmi.server.Operation("java.lang.String whoAreYou()")
    };
    
    private static final long interfaceHash = 6029370410593701439L;
    
    private static final long serialVersionUID = 2;
    
    private static boolean useNewInvoke;
    private static java.lang.reflect.Method $method_friend_0;
    private static java.lang.reflect.Method $method_purchase_1;
    private static java.lang.reflect.Method $method_sale_2;
    private static java.lang.reflect.Method $method_updateBidList_3;
    private static java.lang.reflect.Method $method_whoAreYou_4;
    
    static {
	try {
	    java.rmi.server.RemoteRef.class.getMethod("invoke",
		new java.lang.Class[] {
		    java.rmi.Remote.class,
		    java.lang.reflect.Method.class,
		    java.lang.Object[].class,
		    long.class
		});
	    useNewInvoke = true;
	    $method_friend_0 = BidClient.class.getMethod("friend", new java.lang.Class[] {BidClient.class});
	    $method_purchase_1 = BidClient.class.getMethod("purchase", new java.lang.Class[] {BidClient.class, java.lang.String.class, int.class});
	    $method_sale_2 = BidClient.class.getMethod("sale", new java.lang.Class[] {BidClient.class, java.lang.String.class, int.class});
	    $method_updateBidList_3 = BidClient.class.getMethod("updateBidList", new java.lang.Class[] {java.util.Vector.class});
	    $method_whoAreYou_4 = BidClient.class.getMethod("whoAreYou", new java.lang.Class[] {});
	} catch (java.lang.NoSuchMethodException e) {
	    useNewInvoke = false;
	}
    }
    
    // constructors
    public BidClientImpl_Stub() {
	super();
    }
    public BidClientImpl_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
    }
    
    // methods from remote interfaces
    
    // implementation of friend(BidClient)
    public void friend(BidClient $param_BidClient_1)
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		ref.invoke(this, $method_friend_0, new java.lang.Object[] {$param_BidClient_1}, -2613345738014275759L);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
		try {
		    java.io.ObjectOutput out = call.getOutputStream();
		    out.writeObject($param_BidClient_1);
		} catch (java.io.IOException e) {
		    throw new java.rmi.MarshalException("error marshalling arguments", e);
		}
		ref.invoke(call);
		ref.done(call);
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of purchase(BidClient, String, int)
    public void purchase(BidClient $param_BidClient_1, java.lang.String $param_String_2, int $param_int_3)
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		ref.invoke(this, $method_purchase_1, new java.lang.Object[] {$param_BidClient_1, $param_String_2, new java.lang.Integer($param_int_3)}, 4575250383833983034L);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
		try {
		    java.io.ObjectOutput out = call.getOutputStream();
		    out.writeObject($param_BidClient_1);
		    out.writeObject($param_String_2);
		    out.writeInt($param_int_3);
		} catch (java.io.IOException e) {
		    throw new java.rmi.MarshalException("error marshalling arguments", e);
		}
		ref.invoke(call);
		ref.done(call);
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of sale(BidClient, String, int)
    public void sale(BidClient $param_BidClient_1, java.lang.String $param_String_2, int $param_int_3)
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		ref.invoke(this, $method_sale_2, new java.lang.Object[] {$param_BidClient_1, $param_String_2, new java.lang.Integer($param_int_3)}, 7087581732273167581L);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash);
		try {
		    java.io.ObjectOutput out = call.getOutputStream();
		    out.writeObject($param_BidClient_1);
		    out.writeObject($param_String_2);
		    out.writeInt($param_int_3);
		} catch (java.io.IOException e) {
		    throw new java.rmi.MarshalException("error marshalling arguments", e);
		}
		ref.invoke(call);
		ref.done(call);
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of updateBidList(Vector)
    public void updateBidList(java.util.Vector $param_Vector_1)
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		ref.invoke(this, $method_updateBidList_3, new java.lang.Object[] {$param_Vector_1}, -6506765319098756395L);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 3, interfaceHash);
		try {
		    java.io.ObjectOutput out = call.getOutputStream();
		    out.writeObject($param_Vector_1);
		} catch (java.io.IOException e) {
		    throw new java.rmi.MarshalException("error marshalling arguments", e);
		}
		ref.invoke(call);
		ref.done(call);
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of whoAreYou()
    public java.lang.String whoAreYou()
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		Object $result = ref.invoke(this, $method_whoAreYou_4, null, -6840866399157665294L);
		return ((java.lang.String) $result);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 4, interfaceHash);
		ref.invoke(call);
		java.lang.String $result;
		try {
		    java.io.ObjectInput in = call.getInputStream();
		    $result = (java.lang.String) in.readObject();
		} catch (java.io.IOException e) {
		    throw new java.rmi.UnmarshalException("error unmarshalling return", e);
		} catch (java.lang.ClassNotFoundException e) {
		    throw new java.rmi.UnmarshalException("error unmarshalling return", e);
		} finally {
		    ref.done(call);
		}
		return $result;
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
}
