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

📄 abstractdept.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:31 CST 2006 by MyEclipse Hibernate Tool.
 */
package lyzn.logic.hibernate;

import java.io.Serializable;

/**
 * A class that represents a row in the DEPT table. 
 * You can customize the behavior of this class by editing the class, {@link Dept()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractDept 
    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 deptno;

    /** The value of the empSet one-to-many association. */
    private java.util.Set empSet;

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

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

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

    /**
     * Constructor of AbstractDept instances given a simple primary key.
     * @param deptno
     */
    public AbstractDept(java.lang.Short deptno)
    {
        this.setDeptno(deptno);
    }

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

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

    /**
     * Return the value of the DNAME column.
     * @return java.lang.String
     */
    public java.lang.String getDname()
    {
        return this.dname;
    }

    /**
     * Set the value of the DNAME column.
     * @param dname
     */
    public void setDname(java.lang.String dname)
    {
        this.dname = dname;
    }

    /**
     * Return the value of the LOC column.
     * @return java.lang.String
     */
    public java.lang.String getLoc()
    {
        return this.loc;
    }

    /**
     * Set the value of the LOC column.
     * @param loc
     */
    public void setLoc(java.lang.String loc)
    {
        this.loc = loc;
    }

    /**
     * Return the value of the DEPTNO collection.
     * @return Emp
     */
    public java.util.Set getEmpSet()
    {
        return this.empSet;
    }

    /**
     * Set the value of the DEPTNO collection.
     * @param empSet
     */
    public void setEmpSet(java.util.Set empSet)
    {
        this.empSet = empSet;
    }

    /**
     * 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 Dept))
            return false;
        Dept that = (Dept) rhs;
        if (this.getDeptno() == null || that.getDeptno() == null)
            return false;
        return (this.getDeptno().equals(that.getDeptno()));
    }

    /**
     * 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 deptnoValue = this.getDeptno() == null ? 0 : this.getDeptno().hashCode();
            result = result * 37 + deptnoValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}

⌨️ 快捷键说明

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