AbstractTdept.java
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.oa.module.office.dept;
- /**
- * 部门持久类的抽象类
- * @author czpeng
- *
- */
- public abstract class AbstractTdept implements java.io.Serializable {
- // Fields
- private int hashValue = 0;
- private String did;
- private String dname;
- private long uno;
- private String dfunction;
- private String dmemo;
- private String dflag;
- // Constructors
- /** default constructor */
- public AbstractTdept() {
- }
- /** full constructor */
- public AbstractTdept(String dname, long uno, String dfunction,
- String dmemo, String dflag) {
- this.dname = dname;
- this.uno = uno;
- this.dfunction = dfunction;
- this.dmemo = dmemo;
- this.dflag = dflag;
- }
- // Property accessors
- public String getDid() {
- return this.did;
- }
- public void setDid(String did) {
- this.did = did;
- }
- public String getDname() {
- return this.dname;
- }
- public void setDname(String dname) {
- this.dname = dname;
- }
- public long getUno() {
- return this.uno;
- }
- public void setUno(long uno) {
- this.uno = uno;
- }
- public String getDfunction() {
- return this.dfunction;
- }
- public void setDfunction(String dfunction) {
- this.dfunction = dfunction;
- }
- public String getDmemo() {
- return this.dmemo;
- }
- public void setDmemo(String dmemo) {
- this.dmemo = dmemo;
- }
- public String getDflag() {
- return this.dflag;
- }
- public void setDflag(String dflag) {
- this.dflag = dflag;
- }
- public boolean equals(Object rhs) {
- if (rhs == null)
- return false;
- if (!(rhs instanceof Tdept))
- return false;
- Tdept that = (Tdept) rhs;
- if (this.getDid() == null || that.getDid() == null)
- return false;
- return (this.getDid().equals(that.getDid()));
- }
- public int hashCode() {
- if (this.hashValue == 0) {
- int result = 17;
- int didValue = this.getDid() == null ? 0 : this.getDid().hashCode();
- result = result * 37 + didValue;
- this.hashValue = result;
- }
- return this.hashValue;
- }
- }