⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jobbean.java

📁 21天精通Java,这是一本英文书
💻 JAVA
字号:
package web;

import java.rmi.*;
import javax.ejb.*;
import javax.naming.*;
import agency.*;

public class JobBean
{
	private AdvertiseJobHome jobHome;
	private AdvertiseJob job;
	private String customer;
	private String ref;

	public void updateDetails (String description, String location, String[] skills) throws RemoteException {
		if (skills == null)
		   skills = new String[0];
		job.updateDetails(description, location, skills);
	}

	public void setRef(String ref) throws RemoteException, CreateException {
		this.ref = ref;
		job = jobHome.create(ref,customer);
	}

	public String getRef() throws RemoteException {
		return ref;
	}

	public void setCustomer(String customer) throws RemoteException {
		this.customer = customer;
	}

	public String getCustomer() throws RemoteException {
		return customer;
	}

	public String getDescription() throws RemoteException {
		return job.getDescription();
	}
	
	public String getLocation() throws RemoteException {
		return job.getLocation();
	}

	public String[] getSkills() throws RemoteException {
		return job.getSkills();
	}
	
	public JobBean() throws RemoteException, NamingException {
		InitialContext ic = null;
		ic = new InitialContext();
		jobHome = (AdvertiseJobHome)ic.lookup("java:comp/env/ejb/AdvertiseJob");
	}
}

⌨️ 快捷键说明

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