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

📄 myitemdata.java

📁 J2EE 技术 源码 书籍源代码(j2ee编程技术)
💻 JAVA
字号:
/* * Generated by XDoclet - Do not edit! */package com.ejbstudy;/** * Data object for MyItem. * @lomboz generated */public class MyItemData   extends java.lang.Object   implements java.io.Serializable{   private java.lang.String id;   private java.lang.String supplierid;   private java.lang.String description;   private java.lang.Integer quantity;   private java.lang.Double price;  /* begin value object */  /* end value object */   public MyItemData()   {   }   public MyItemData( java.lang.String id,java.lang.String supplierid,java.lang.String description,java.lang.Integer quantity,java.lang.Double price )   {      setId(id);      setSupplierid(supplierid);      setDescription(description);      setQuantity(quantity);      setPrice(price);   }   public MyItemData( MyItemData otherData )   {      setId(otherData.getId());      setSupplierid(otherData.getSupplierid());      setDescription(otherData.getDescription());      setQuantity(otherData.getQuantity());      setPrice(otherData.getPrice());   }   public java.lang.String getPrimaryKey() {     return  getId();   }   public java.lang.String getId()   {      return this.id;   }   public void setId( java.lang.String id )   {      this.id = id;   }   public java.lang.String getSupplierid()   {      return this.supplierid;   }   public void setSupplierid( java.lang.String supplierid )   {      this.supplierid = supplierid;   }   public java.lang.String getDescription()   {      return this.description;   }   public void setDescription( java.lang.String description )   {      this.description = description;   }   public java.lang.Integer getQuantity()   {      return this.quantity;   }   public void setQuantity( java.lang.Integer quantity )   {      this.quantity = quantity;   }   public java.lang.Double getPrice()   {      return this.price;   }   public void setPrice( java.lang.Double price )   {      this.price = price;   }   public String toString()   {      StringBuffer str = new StringBuffer("{");      str.append("id=" + getId() + " " + "supplierid=" + getSupplierid() + " " + "description=" + getDescription() + " " + "quantity=" + getQuantity() + " " + "price=" + getPrice());      str.append('}');      return(str.toString());   }   public boolean equals( Object pOther )   {      if( pOther instanceof MyItemData )      {         MyItemData lTest = (MyItemData) pOther;         boolean lEquals = true;         if( this.id == null )         {            lEquals = lEquals && ( lTest.id == null );         }         else         {            lEquals = lEquals && this.id.equals( lTest.id );         }         if( this.supplierid == null )         {            lEquals = lEquals && ( lTest.supplierid == null );         }         else         {            lEquals = lEquals && this.supplierid.equals( lTest.supplierid );         }         if( this.description == null )         {            lEquals = lEquals && ( lTest.description == null );         }         else         {            lEquals = lEquals && this.description.equals( lTest.description );         }         if( this.quantity == null )         {            lEquals = lEquals && ( lTest.quantity == null );         }         else         {            lEquals = lEquals && this.quantity.equals( lTest.quantity );         }         if( this.price == null )         {            lEquals = lEquals && ( lTest.price == null );         }         else         {            lEquals = lEquals && this.price.equals( lTest.price );         }         return lEquals;      }      else      {         return false;      }   }   public int hashCode()   {      int result = 17;      result = 37*result + ((this.id != null) ? this.id.hashCode() : 0);      result = 37*result + ((this.supplierid != null) ? this.supplierid.hashCode() : 0);      result = 37*result + ((this.description != null) ? this.description.hashCode() : 0);      result = 37*result + ((this.quantity != null) ? this.quantity.hashCode() : 0);      result = 37*result + ((this.price != null) ? this.price.hashCode() : 0);      return result;   }}

⌨️ 快捷键说明

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