public class OrderManager extends UnicastRemoteObject implements IOrderManager {
protected OrderManager() throws RemoteException {
super()
}
private static final long serialVersionUID =
@Override
public Order getOrder(int id) throws RemoteException { //返回訂單信息
Order o=new Order()
o
o
o
return o;
}
@Override
public String getClientName(int id) throws RemoteException {
//返回訂單的客戶名
return
}
@Override
public String getProdName(int id) throws RemoteException {
//返回商品名稱
return
}
@Override
public int getNumber(int id) throws RemoteException { //返回數量
return
}
}
返回目錄
編輯推薦
Java程序設計培訓視頻教程
J
J
Visual C++音頻/視頻技術開發與實戰
Oracle索引技術
ORACLE
[
From:http://tw.wingwit.com/Article/program/Java/gj/201311/27815.html