doctorwebservice.java

来自「BEA WebLogic Server 8.1大全 = BEA webLogic」· Java 代码 · 共 33 行

JAVA
33
字号
package com.wlsunleashed.webservices.autotype;

import java.util.Hashtable;

/**
 * Class DoctorWebService
 * Description: A Java class used to be used as a backend 
 *				component for a Web Service.  Utilizes user-defined 
 *				data typed called DoctorInfo
 *
 * Copyright:    Copyright (c) 2002
 * Company:      Gamma Enterprise Technologies
 * @author Jeff Marin <jeffm@getgamma.com>
 * @version 1.0  10/1/2002
 */

public class DoctorWebService {
	Hashtable doctorHash = null;
	
	public DoctorWebService() {
		doctorHash = new Hashtable();
		DoctorInfo di = new DoctorInfo(1, "Troy", "Chin", 89.25f);
		doctorHash.put(new Integer(1), di);
		di = new DoctorInfo(2, "Rina", "Caprario", 95.72f);
		doctorHash.put(new Integer(2), di);
	}
	
	public DoctorInfo getDoctorInfo(int doctorID) {
		Object key = new Integer(doctorID);
		DoctorInfo di = (DoctorInfo)doctorHash.get(key);
		return di;		
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?