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

📄 customerpk.java

📁 使用J2EE编写的网上商店系统
💻 JAVA
字号:
/* * Generated by XDoclet - Do not edit! */package bmp;/** * Primary key for Customer. * @lomboz generated */public class CustomerPK   extends java.lang.Object   implements java.io.Serializable{   private int _hashCode = 0;   private StringBuffer _toStringValue = null;   public java.lang.String customerID;   public CustomerPK()   {   }   public CustomerPK( java.lang.String customerID )   {      this.customerID = customerID;   }   public java.lang.String getCustomerID()   {      return customerID;   }   public void setCustomerID(java.lang.String customerID)   {      this.customerID = customerID;      _hashCode = 0;   }   public int hashCode()   {      if( _hashCode == 0 )      {         if (this.customerID != null) _hashCode += this.customerID.hashCode();      }      return _hashCode;   }   public boolean equals(Object obj)   {      if( !(obj instanceof bmp.CustomerPK) )         return false;      bmp.CustomerPK pk = (bmp.CustomerPK)obj;      boolean eq = true;      if( obj == null )      {         eq = false;      }      else      {         if( this.customerID == null && ((bmp.CustomerPK)obj).getCustomerID() == null )         {            eq = true;         }         else         {            if( this.customerID == null || ((bmp.CustomerPK)obj).getCustomerID() == null )            {               eq = false;            }            else            {               eq = eq && this.customerID.equals( pk.customerID );            }         }      }      return eq;   }   /** @return String representation of this pk in the form of [.field1.field2.field3]. */   public String toString()   {      if( _toStringValue == null )      {         _toStringValue = new StringBuffer("[.");         _toStringValue.append(this.customerID).append('.');         _toStringValue.append(']');      }      return _toStringValue.toString();   }}

⌨️ 快捷键说明

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