zoukankan      html  css  js  c++  java
  • 使用Servlet上传多张图片——实体层(ProductInfo.java)

    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;
    	}
    	
    
    }
    

  • 相关阅读:
    python接口自动化测试十三:url编码与解码
    python接口自动化测试十二:对返回的json的简单操作
    python接口自动化测试十一:传参数:data与json
    python接口自动化测试九:重定向相关
    python接口自动化测试十:字典、字符串、json之间的简单处理
    python接口自动化测试八:更新Cookies、session保持会话
    python接口自动化测试七:获取登录的Cookies
    python接口自动化测试六:时间戳,防重复处理
    python接口自动化测试五:乱码、警告、错误处理
    python接口自动化测试四:代码发送HTTPS请求
  • 原文地址:https://www.cnblogs.com/a1111/p/12816139.html
Copyright © 2011-2022 走看看