使用Servlet上传多张图片——实体层(ProductInfo.java)

本文介绍了一个用于存储和管理商品信息的Java实体类,包括商品编号、名称、价格等属性及其getter和setter方法。
package orz.treeSquirrels.entity;
/**
 * 商品信息表的实体类
 * @author Administrator
 *
 */
public class ProductInfo {
	
	private int productId;				//商品编号
	private String productName;			//商品名称
	private float price;				//商品价格
	private String details;				//商品详情
	private int stock;					//商品库存
	private String fileName;			//大图
	private String fileName_1;			//小图1
	private String fileName_2;			//小图2
	private String fileName_3;			//小图3
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public int getProductId() {
		return productId;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param productId   
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getProductName() {
		return productName;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param productName   
	 */
	public void setProductName(String productName) {
		this.productName = productName;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public float getPrice() {
		return price;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param price   
	 */
	public void setPrice(float price) {
		this.price = price;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getDetails() {
		return details;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param details   
	 */
	public void setDetails(String details) {
		this.details = details;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public int getStock() {
		return stock;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param stock   
	 */
	public void setStock(int stock) {
		this.stock = stock;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getFileName() {
		return fileName;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param fileName   
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getFileName_1() {
		return fileName_1;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param fileName_1   
	 */
	public void setFileName_1(String fileName_1) {
		this.fileName_1 = fileName_1;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getFileName_2() {
		return fileName_2;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param fileName_2   
	 */
	public void setFileName_2(String fileName_2) {
		this.fileName_2 = fileName_2;
	}
	/**    
	 * @author Mu Xiongxiong       
	 * @created 2017-10-11 下午7:11:16 
	 * @return type 
	 */
	
	public String getFileName_3() {
		return fileName_3;
	}
	/**     
	 * @author Mu Xiongxiong      
	 * @created 2017-10-11 下午7:11:16         
	 * @param fileName_3   
	 */
	public void setFileName_3(String fileName_3) {
		this.fileName_3 = fileName_3;
	}
	

}

Exception in thread "Startup Class Loader": java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.instutil.InstutilResourceKeys at com.mathworks.mlwidgets.help.DocCenterRoot.initDocRelease(DocCenterRoot.java:44) at com.mathworks.mlwidgets.help.DocCenterRoot.<clinit>(DocCenterRoot.java:26) at com.mathworks.mlwidgets.help.HelpPrefs.<clinit>(HelpPrefs.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.mathworks.mlservices.MLHelpServices.getDocRoot(MLHelpServices.java:522) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getDocrootDirectory(ProductInfoUtils.java:707) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAbsolutePath(ProductInfoUtils.java:694) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFile(ProductInfoUtils.java:259) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFiles(ProductInfoUtils.java:319) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.pathChanged(ProductInfoUtils.java:154) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<init>(ProductInfoUtils.java:80) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAllProductsInfo(ProductInfoUtils.java:900) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<clinit>(ProductInfoUtils.java:66) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.mathworks.mde.desk.StartupClassLoader$LoadInfo.<init>(StartupClassLoader.java:112) at com.mathworks.mde.desk.StartupClassLoader.createLoadInfos(StartupClassLoader.java:202) at com.mathworks.mde.desk.StartupClassLoader.access$500(StartupClassLoader.java:25) at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:223) at java.lang.Thread.run(Thread.java:748)
08-15
Exception in thread "AWT-EventQueue-0": java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.instutil.InstutilResourceKeys at com.mathworks.mde.desk.LoginStatusIndicator.setupLoginButtonAndUI(LoginStatusIndicator.java:231) at com.mathworks.mde.desk.LoginStatusIndicator.access$100(LoginStatusIndicator.java:58) at com.mathworks.mde.desk.LoginStatusIndicator$2$1.run(LoginStatusIndicator.java:174) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Exception in thread "Startup Class Loader": java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.instutil.InstutilResourceKeys at com.mathworks.mlwidgets.help.DocCenterRoot.initDocRelease(DocCenterRoot.java:54) at com.mathworks.mlwidgets.help.DocCenterRoot.<clinit>(DocCenterRoot.java:36) at com.mathworks.mlwidgets.help.HelpPrefs.<clinit>(HelpPrefs.java:58) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.mathworks.mlservices.MLHelpServices.getDocRoot(MLHelpServices.java:498) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getDocrootDirectory(ProductInfoUtils.java:707) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAbsolutePath(ProductInfoUtils.java:694) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFile(ProductInfoUtils.java:259) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFiles(ProductInfoUtils.java:319) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.pathChanged(ProductInfoUtils.java:154) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<init>(ProductInfoUtils.java:80) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAllProductsInfo(ProductInfoUtils.java:900) at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<clinit>(ProductInfoUtils.java:66) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.mathworks.mde.desk.StartupClassLoader$LoadInfo.<init>(StartupClassLoader.java:112) at com.mathworks.mde.desk.StartupClassLoader.createLoadInfos(StartupClassLoader.java:202) at com.mathworks.mde.desk.StartupClassLoader.access$500(StartupClassLoader.java:25) at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:223) at java.lang.Thread.run(Thread.java:748)
最新发布
10-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

穆雄雄

哎,貌似还没开张来着呢~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值