⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractemp.java

📁 serverlet+exlips的一个素据库读取例程。
💻 JAVA
字号:
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Thu Mar 02 08:59:06 CST 2006 by MyEclipse Hibernate Tool.
 */
package lyzn.logic.hibernate;

import java.io.Serializable;

/**
 * A class that represents a row in the EMP table. 
 * You can customize the behavior of this class by editing the class, {@link Emp()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractEmp 
    implements Serializable
{
    /** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Short empno;

    /** The value of the dept association. */
    private Dept dept;

    /** The value of the simple ename property. */
    private java.lang.String ename;

    /** The value of the simple job property. */
    private java.lang.String job;

    /** The value of the simple mgr property. */
    private java.lang.Short mgr;

    /** The value of the simple hiredate property. */
    private java.util.Date hiredate;

    /** The value of the simple sal property. */
    private java.lang.Float sal;

    /** The value of the simple comm property. */
    private java.lang.Float comm;

    /**
     * Simple constructor of AbstractEmp instances.
     */
    public AbstractEmp()
    {
    }

    /**
     * Constructor of AbstractEmp instances given a simple primary key.
     * @param empno
     */
    public AbstractEmp(java.lang.Short empno)
    {
        this.setEmpno(empno);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Short
     */
    public java.lang.Short getEmpno()
    {
        return empno;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param empno
     */
    public void setEmpno(java.lang.Short empno)
    {
        this.hashValue = 0;
        this.empno = empno;
    }

    /**
     * Return the value of the ENAME column.
     * @return java.lang.String
     */
    public java.lang.String getEname()
    {
        return this.ename;
    }

    /**
     * Set the value of the ENAME column.
     * @param ename
     */
    public void setEname(java.lang.String ename)
    {
        this.ename = ename;
    }

    /**
     * Return the value of the JOB column.
     * @return java.lang.String
     */
    public java.lang.String getJob()
    {
        return this.job;
    }

    /**
     * Set the value of the JOB column.
     * @param job
     */
    public void setJob(java.lang.String job)
    {
        this.job = job;
    }

    /**
     * Return the value of the MGR column.
     * @return java.lang.Short
     */
    public java.lang.Short getMgr()
    {
        return this.mgr;
    }

    /**
     * Set the value of the MGR column.
     * @param mgr
     */
    public void setMgr(java.lang.Short mgr)
    {
        this.mgr = mgr;
    }

    /**
     * Return the value of the HIREDATE column.
     * @return java.util.Date
     */
    public java.util.Date getHiredate()
    {
        return this.hiredate;
    }

    /**
     * Set the value of the HIREDATE column.
     * @param hiredate
     */
    public void setHiredate(java.util.Date hiredate)
    {
        this.hiredate = hiredate;
    }

    /**
     * Return the value of the SAL column.
     * @return java.lang.Float
     */
    public java.lang.Float getSal()
    {
        return this.sal;
    }

    /**
     * Set the value of the SAL column.
     * @param sal
     */
    public void setSal(java.lang.Float sal)
    {
        this.sal = sal;
    }

    /**
     * Return the value of the COMM column.
     * @return java.lang.Float
     */
    public java.lang.Float getComm()
    {
        return this.comm;
    }

    /**
     * Set the value of the COMM column.
     * @param comm
     */
    public void setComm(java.lang.Float comm)
    {
        this.comm = comm;
    }

    /**
     * Return the value of the DEPTNO column.
     * @return Dept
     */
    public Dept getDept()
    {
        return this.dept;
    }

    /**
     * Set the value of the DEPTNO column.
     * @param dept
     */
    public void setDept(Dept dept)
    {
        this.dept = dept;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof Emp))
            return false;
        Emp that = (Emp) rhs;
        if (this.getEmpno() == null || that.getEmpno() == null)
            return false;
        return (this.getEmpno().equals(that.getEmpno()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int empnoValue = this.getEmpno() == null ? 0 : this.getEmpno().hashCode();
            result = result * 37 + empnoValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -