car.java

来自「myeclipse下编写的jndi开发案例」· Java 代码 · 共 48 行

JAVA
48
字号
import java.io.Serializable;

import javax.naming.NamingException;
import javax.naming.Reference;
import javax.naming.Referenceable;


public class Car implements Serializable{
	private String brandy;
	private String type;
	private String color;
	public Car() {
		// TODO Auto-generated constructor stub
	}
	public Car(String brandy,String type,String color) {
		// TODO Auto-generated constructor stub
		this.brandy=brandy;
		this.type=type;
		this.color=color;
	}
	/*
	public Reference getReference() throws NamingException {
		// TODO Auto-generated method stub
		Reference ref=new Reference(this.getClass().getName());
		return ref;
	}
	*/
	public String getBrandy() {
		return brandy;
	}
	public void setBrandy(String brandy) {
		this.brandy = brandy;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}

}

⌨️ 快捷键说明

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