📄 goodinfodes.java
字号:
package sessEJB;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* @author snoomy
*
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
public class GoodInfoDes implements Serializable {
public GoodInfoDes(
String goodid,
String Name,
String Comment,
String Type,
float price,
float discount) {
this.GoodId = goodid;
this.Comment = Comment;
this.discount = discount;
this.Name = Name;
this.price = price;
this.Type = Type;
}
/**
* Constructor GoodInfoDes.
*/
String GoodId, Name, Type, Comment;
float price, discount;
/**
* Returns the comment.
* @return String
*/
public String getComment() {
return Comment;
}
/**
* Returns the discount.
* @return float
*/
public float getDiscount() {
return discount;
}
/**
* Returns the goodId.
* @return String
*/
public String getGoodId() {
return GoodId;
}
/**
* Returns the name.
* @return String
*/
public String getName() {
return Name;
}
/**
* Returns the price.
* @return float
*/
public float getPrice() {
return price;
}
/**
* Returns the type.
* @return String
*/
public String getType() {
return Type;
}
/**
* Sets the comment.
* @param comment The comment to set
*/
public void setComment(String comment) {
Comment = comment;
}
/**
* Sets the discount.
* @param discount The discount to set
*/
public void setDiscount(float discount) {
this.discount = discount;
}
/**
* Sets the goodId.
* @param goodId The goodId to set
*/
public void setGoodId(String goodId) {
GoodId = goodId;
}
/**
* Sets the name.
* @param name The name to set
*/
public void setName(String name) {
Name = name;
}
/**
* Sets the price.
* @param price The price to set
*/
public void setPrice(float price) {
this.price = price;
}
/**
* Sets the type.
* @param type The type to set
*/
public void setType(String type) {
Type = type;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -