• Servlet使用适配器模式进行增删改查案例(Dept.java)


    package org.entity;
    
    /**
     * 
    *    
    * 项目名称:test_BaseDao   
    * 类名称:Dept   
    * 类描述:   部门表的实体类
    * 创建人:Mu Xiongxiong  
    * 创建时间:2017-9-13 上午8:44:37   
    * 修改人:Mu Xiongxiong   
    * 修改时间:2017-9-13 上午8:44:37   
    * 修改备注:   
    * @version    
    *
     */
    public class Dept {
           
    	
    	//属性  :和数据库中的表的字段一致;
    	
    	/**
    	* @Fields deptno :该字段的意思:部门编号
    	*/
    	private int deptno;   
    	/**
    	* @Fields dname :该字段的意思:部门名称
    	*/
    	private String dname;
    	/**
    	* @Fields loc :该字段的意思:地址
    	*/
    	private String loc;
    	
    	
    	  
    	    /** 
    	     * 构造函数 
    	     * @discription 
    	     * @author Mu Xiongxiong     
    	     * @created 2017-9-13 上午8:45:24           
    	     */ 
    	public Dept() {
    		// TODO Auto-generated constructor stub
    	}
    
        
    	  
    	    /** 
    	     * 构造函数 
    	     * @discription 
    	     * @author Mu Xiongxiong     
    	     * @created 2017-9-13 上午8:45:27      
    	     * @param deptno
    	     * @param dname
    	     * @param loc     
    	     */ 
    	public Dept(int deptno, String dname, String loc) {
    		super();
    		this.deptno = deptno;
    		this.dname = dname;
    		this.loc = loc;
    	}
    
    
    	public int getDeptno() {
    		return deptno;
    	}
    
    
    	public void setDeptno(int deptno) {
    		this.deptno = deptno;
    	}
    
    
    	public String getDname() {
    		return dname;
    	}
    
    
    	public void setDname(String dname) {
    		this.dname = dname;
    	}
    
    
    	public String getLoc() {
    		return loc;
    	}
    
    
    	public void setLoc(String loc) {
    		this.loc = loc;
    	}
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    }
    

  • 相关阅读:
    打印机故障之乌龙事件
    为什么 FastAdmin 的插件不全部免费?
    PADS Logic 脚本的 Fields 一个对象记录
    时间模块和random模块

    模块的导入和使用
    递归函数与二分查找算法
    递归函数
    匿名函数
    内置函数
  • 原文地址:https://www.cnblogs.com/a1111/p/12816186.html
Copyright © 2020-2023  润新知