📄 product.java
字号:
/*
* Product.java
*
* Created on 2007年10月25日, 下午3:19
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.me.product;
import java.io.*;
/**
*
* @author Administrator
*/
public class Product implements Serializable{
/** Creates a new instance of Product */
/* 私有字段 */
private String productId;
private String categoryId;
private String name;
private String description;
private String producer;
private float price;
/* JavaBean属性访问方法 */
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId.trim();
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getProducer(){
return this.producer;
}
public void setProducer(String pro){
this.producer=pro;
}
public float getPrice(){
return this.price;
}
public void setPrice(float price){
this.price=price;
}
/**共公方法*/
public String toString() {
return getName();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -