zoukankan      html  css  js  c++  java
  • javaWeb服务详解【客户端调用】(含源代码,测试通过,注释) ——Dept实体类

    package org.entity;
    
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    
    
    /**
     * <p>dept complex type的 Java 类。
     * 
     * <p>以下模式片段指定包含在此类中的预期内容。
     * 
     * <pre>
     * <complexType name="dept">
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="deptno" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
     *         <element name="dname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *         <element name="emps" type="{http://www.xiongxiong.cn.ws/dept}emp" maxOccurs="unbounded" minOccurs="0"/>
     *         <element name="loc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "dept", propOrder = {
        "deptno",
        "dname",
        "emps",
        "loc"
    })
    public class Dept {
    
        protected Integer deptno;
        protected String dname;
        @XmlElement(nillable = true)
        protected List<Emp> emps;
        protected String loc;
    
        /**
         * 获取deptno属性的值。
         * 
         * @return
         *     possible object is
         *     {@link Integer }
         *     
         */
        public Integer getDeptno() {
            return deptno;
        }
    
        /**
         * 设置deptno属性的值。
         * 
         * @param value
         *     allowed object is
         *     {@link Integer }
         *     
         */
        public void setDeptno(Integer value) {
            this.deptno = value;
        }
    
        /**
         * 获取dname属性的值。
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getDname() {
            return dname;
        }
    
        /**
         * 设置dname属性的值。
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setDname(String value) {
            this.dname = value;
        }
    
        /**
         * Gets the value of the emps property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the emps property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getEmps().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link Emp }
         * 
         * 
         */
        public List<Emp> getEmps() {
            if (emps == null) {
                emps = new ArrayList<Emp>();
            }
            return this.emps;
        }
    
        /**
         * 获取loc属性的值。
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getLoc() {
            return loc;
        }
    
        /**
         * 设置loc属性的值。
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setLoc(String value) {
            this.loc = value;
        }
    
    }
    

  • 相关阅读:
    lintcode491 回文数
    lintcode514 栅栏染色
    lintcode433 岛屿的个数
    lintcode142 O(1)时间检测2的幂次
    lintcode166 链表倒数第n个节点
    lintcode539 移动零
    lintcode: Check Sum of Square Numbers
    lintcode: Missing String
    lintcode 二叉树的锯齿形层次遍历
    Mysql 游标的定义与使用方式
  • 原文地址:https://www.cnblogs.com/a1111/p/12816231.html
Copyright © 2011-2022 走看看