com.zhjy.external.model.original.JyBidderInfoAbstract.java Source code

Java tutorial

Introduction

Here is the source code for com.zhjy.external.model.original.JyBidderInfoAbstract.java

Source

package com.zhjy.external.model.original;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import org.hi.framework.model.BaseObject;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.zhjy.external.model.JyBidderInfo;
import com.zhjy.external.model.JyTenderBulletin;

public abstract class JyBidderInfoAbstract extends BaseObject implements Serializable {

    /**
    * id
    */
    private String id;

    /**
     * version
     */
    private Integer version;

    /**
    * 
    */
    private String tradingCardID;

    /**
    * 
    */
    private String name;

    /**
    * 
    */
    private String legalName;

    /**
    * 
    */
    private String legalNameID;

    /**
    * 
    */
    private String contactName;

    /**
    * 
    */
    private String cell;

    /**
    * 
    */
    private String incorporation;

    /**
    * 
    */
    private String incorCell;

    /**
    * 
    */
    private String authorities;

    /**
    * 
    */
    private String ccAdress;

    /**
    * 
    */
    private String ccCell;

    /**
    * 
    */
    private String ccHeader;

    /**
    * 
    */
    private String post;

    /**
    * 
    */
    private String headCell;

    /**
    * 
    */
    private Date ccDate;

    /**
    * 
    */
    private Double refCapital;

    /**
    * 
    */
    private String licenseID;

    /**
    * 
    */
    private String orgCodeID;

    /**
    * 
    */
    private String safetyPermits;

    /**
    * 
    */
    private String bank;

    /**
    * 
    */
    private String bankAccount;

    /**
    * 2
    */
    private String bankAccount2;

    /**
    * 
    */
    private String unitType;

    /**
    * jyTenderBulletin
    */
    private JyTenderBulletin jyTenderBulletin;

    public Integer getVersion() {
        return this.version;
    }

    public void setVersion(Integer version) {
        if ((version != null && this.version == null)
                || this.version != null && (!this.version.equals(version) || version == null)) {
            this.setDirty(true);
            this.oldValues.put("version", this.version);
        }
        this.version = version;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        if ((id != null && this.id == null) || this.id != null && (!this.id.equals(id) || id == null)) {
            this.setDirty(true);
            this.oldValues.put("id", this.id);
        }
        this.id = id;
    }

    public String getTradingCardID() {
        return this.tradingCardID;
    }

    public void setTradingCardID(String tradingCardID) {
        if ((tradingCardID != null && this.tradingCardID == null) || this.tradingCardID != null
                && (!this.tradingCardID.equals(tradingCardID) || tradingCardID == null)) {
            this.setDirty(true);
            this.oldValues.put("tradingCardID", this.tradingCardID);
        }
        this.tradingCardID = tradingCardID;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        if ((name != null && this.name == null) || this.name != null && (!this.name.equals(name) || name == null)) {
            this.setDirty(true);
            this.oldValues.put("name", this.name);
        }
        this.name = name;
    }

    public String getLegalName() {
        return this.legalName;
    }

    public void setLegalName(String legalName) {
        if ((legalName != null && this.legalName == null)
                || this.legalName != null && (!this.legalName.equals(legalName) || legalName == null)) {
            this.setDirty(true);
            this.oldValues.put("legalName", this.legalName);
        }
        this.legalName = legalName;
    }

    public String getLegalNameID() {
        return this.legalNameID;
    }

    public void setLegalNameID(String legalNameID) {
        if ((legalNameID != null && this.legalNameID == null)
                || this.legalNameID != null && (!this.legalNameID.equals(legalNameID) || legalNameID == null)) {
            this.setDirty(true);
            this.oldValues.put("legalNameID", this.legalNameID);
        }
        this.legalNameID = legalNameID;
    }

    public String getContactName() {
        return this.contactName;
    }

    public void setContactName(String contactName) {
        if ((contactName != null && this.contactName == null)
                || this.contactName != null && (!this.contactName.equals(contactName) || contactName == null)) {
            this.setDirty(true);
            this.oldValues.put("contactName", this.contactName);
        }
        this.contactName = contactName;
    }

    public String getCell() {
        return this.cell;
    }

    public void setCell(String cell) {
        if ((cell != null && this.cell == null) || this.cell != null && (!this.cell.equals(cell) || cell == null)) {
            this.setDirty(true);
            this.oldValues.put("cell", this.cell);
        }
        this.cell = cell;
    }

    public String getIncorporation() {
        return this.incorporation;
    }

    public void setIncorporation(String incorporation) {
        if ((incorporation != null && this.incorporation == null) || this.incorporation != null
                && (!this.incorporation.equals(incorporation) || incorporation == null)) {
            this.setDirty(true);
            this.oldValues.put("incorporation", this.incorporation);
        }
        this.incorporation = incorporation;
    }

    public String getIncorCell() {
        return this.incorCell;
    }

    public void setIncorCell(String incorCell) {
        if ((incorCell != null && this.incorCell == null)
                || this.incorCell != null && (!this.incorCell.equals(incorCell) || incorCell == null)) {
            this.setDirty(true);
            this.oldValues.put("incorCell", this.incorCell);
        }
        this.incorCell = incorCell;
    }

    public String getAuthorities() {
        return this.authorities;
    }

    public void setAuthorities(String authorities) {
        if ((authorities != null && this.authorities == null)
                || this.authorities != null && (!this.authorities.equals(authorities) || authorities == null)) {
            this.setDirty(true);
            this.oldValues.put("authorities", this.authorities);
        }
        this.authorities = authorities;
    }

    public String getCcAdress() {
        return this.ccAdress;
    }

    public void setCcAdress(String ccAdress) {
        if ((ccAdress != null && this.ccAdress == null)
                || this.ccAdress != null && (!this.ccAdress.equals(ccAdress) || ccAdress == null)) {
            this.setDirty(true);
            this.oldValues.put("ccAdress", this.ccAdress);
        }
        this.ccAdress = ccAdress;
    }

    public String getCcCell() {
        return this.ccCell;
    }

    public void setCcCell(String ccCell) {
        if ((ccCell != null && this.ccCell == null)
                || this.ccCell != null && (!this.ccCell.equals(ccCell) || ccCell == null)) {
            this.setDirty(true);
            this.oldValues.put("ccCell", this.ccCell);
        }
        this.ccCell = ccCell;
    }

    public String getCcHeader() {
        return this.ccHeader;
    }

    public void setCcHeader(String ccHeader) {
        if ((ccHeader != null && this.ccHeader == null)
                || this.ccHeader != null && (!this.ccHeader.equals(ccHeader) || ccHeader == null)) {
            this.setDirty(true);
            this.oldValues.put("ccHeader", this.ccHeader);
        }
        this.ccHeader = ccHeader;
    }

    public String getPost() {
        return this.post;
    }

    public void setPost(String post) {
        if ((post != null && this.post == null) || this.post != null && (!this.post.equals(post) || post == null)) {
            this.setDirty(true);
            this.oldValues.put("post", this.post);
        }
        this.post = post;
    }

    public String getHeadCell() {
        return this.headCell;
    }

    public void setHeadCell(String headCell) {
        if ((headCell != null && this.headCell == null)
                || this.headCell != null && (!this.headCell.equals(headCell) || headCell == null)) {
            this.setDirty(true);
            this.oldValues.put("headCell", this.headCell);
        }
        this.headCell = headCell;
    }

    public Date getCcDate() {
        return this.ccDate;
    }

    public void setCcDate(Date ccDate) {
        if ((ccDate != null && this.ccDate == null)
                || this.ccDate != null && (!this.ccDate.equals(ccDate) || ccDate == null)) {
            this.setDirty(true);
            this.oldValues.put("ccDate", this.ccDate);
        }
        this.ccDate = ccDate;
    }

    public Double getRefCapital() {
        return this.refCapital;
    }

    public void setRefCapital(Double refCapital) {
        if ((refCapital != null && this.refCapital == null)
                || this.refCapital != null && (!this.refCapital.equals(refCapital) || refCapital == null)) {
            this.setDirty(true);
            this.oldValues.put("refCapital", this.refCapital);
        }
        this.refCapital = refCapital;
    }

    public String getLicenseID() {
        return this.licenseID;
    }

    public void setLicenseID(String licenseID) {
        if ((licenseID != null && this.licenseID == null)
                || this.licenseID != null && (!this.licenseID.equals(licenseID) || licenseID == null)) {
            this.setDirty(true);
            this.oldValues.put("licenseID", this.licenseID);
        }
        this.licenseID = licenseID;
    }

    public String getOrgCodeID() {
        return this.orgCodeID;
    }

    public void setOrgCodeID(String orgCodeID) {
        if ((orgCodeID != null && this.orgCodeID == null)
                || this.orgCodeID != null && (!this.orgCodeID.equals(orgCodeID) || orgCodeID == null)) {
            this.setDirty(true);
            this.oldValues.put("orgCodeID", this.orgCodeID);
        }
        this.orgCodeID = orgCodeID;
    }

    public String getSafetyPermits() {
        return this.safetyPermits;
    }

    public void setSafetyPermits(String safetyPermits) {
        if ((safetyPermits != null && this.safetyPermits == null) || this.safetyPermits != null
                && (!this.safetyPermits.equals(safetyPermits) || safetyPermits == null)) {
            this.setDirty(true);
            this.oldValues.put("safetyPermits", this.safetyPermits);
        }
        this.safetyPermits = safetyPermits;
    }

    public String getBank() {
        return this.bank;
    }

    public void setBank(String bank) {
        if ((bank != null && this.bank == null) || this.bank != null && (!this.bank.equals(bank) || bank == null)) {
            this.setDirty(true);
            this.oldValues.put("bank", this.bank);
        }
        this.bank = bank;
    }

    public String getBankAccount() {
        return this.bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        if ((bankAccount != null && this.bankAccount == null)
                || this.bankAccount != null && (!this.bankAccount.equals(bankAccount) || bankAccount == null)) {
            this.setDirty(true);
            this.oldValues.put("bankAccount", this.bankAccount);
        }
        this.bankAccount = bankAccount;
    }

    public String getBankAccount2() {
        return this.bankAccount2;
    }

    public void setBankAccount2(String bankAccount2) {
        if ((bankAccount2 != null && this.bankAccount2 == null)
                || this.bankAccount2 != null && (!this.bankAccount2.equals(bankAccount2) || bankAccount2 == null)) {
            this.setDirty(true);
            this.oldValues.put("bankAccount2", this.bankAccount2);
        }
        this.bankAccount2 = bankAccount2;
    }

    public String getUnitType() {
        return this.unitType;
    }

    public void setUnitType(String unitType) {
        if ((unitType != null && this.unitType == null)
                || this.unitType != null && (!this.unitType.equals(unitType) || unitType == null)) {
            this.setDirty(true);
            this.oldValues.put("unitType", this.unitType);
        }
        this.unitType = unitType;
    }

    public JyTenderBulletin getJyTenderBulletin() {
        return this.jyTenderBulletin;
    }

    public void setJyTenderBulletin(JyTenderBulletin jyTenderBulletin) {
        if ((jyTenderBulletin != null && this.jyTenderBulletin == null) || this.jyTenderBulletin != null
                && (!this.jyTenderBulletin.equals(jyTenderBulletin) || jyTenderBulletin == null)) {
            this.setDirty(true);
            this.oldValues.put("jyTenderBulletin", this.jyTenderBulletin);
        }
        this.jyTenderBulletin = jyTenderBulletin;
    }

    public BaseObject getParentEntity() {
        return this.jyTenderBulletin;
    }

    public void setParentEntity(BaseObject parent) {
        this.jyTenderBulletin = (JyTenderBulletin) parent;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof JyBidderInfo))
            return false;
        JyBidderInfo castOther = (JyBidderInfo) other;

        return ((this.getId() == castOther.getId())
                || (this.getId() != null && castOther.getId() != null && this.getId().equals(castOther.getId())));
    }

    public int hashCode() {
        HashCodeBuilder hcb = new HashCodeBuilder(17, 37);
        hcb.append(getId());
        hcb.append("JyBidderInfo".hashCode());
        return hcb.toHashCode();
    }

    public String toString() {
        ToStringBuilder sb = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE);
        sb.append("id", this.id).append("tradingCardID", this.tradingCardID).append("name", this.name)
                .append("legalName", this.legalName).append("legalNameID", this.legalNameID)
                .append("contactName", this.contactName).append("cell", this.cell)
                .append("incorporation", this.incorporation).append("incorCell", this.incorCell)
                .append("authorities", this.authorities).append("ccAdress", this.ccAdress)
                .append("ccCell", this.ccCell).append("ccHeader", this.ccHeader).append("post", this.post)
                .append("headCell", this.headCell).append("refCapital", this.refCapital)
                .append("licenseID", this.licenseID).append("orgCodeID", this.orgCodeID)
                .append("safetyPermits", this.safetyPermits).append("bank", this.bank)
                .append("bankAccount", this.bankAccount).append("bankAccount2", this.bankAccount2)
                .append("unitType", this.unitType);

        return sb.toString();
    }

    public Serializable getPrimarykey() {
        return id;
    }

}