📄 itemdata.java
字号:
/* * Generated by XDoclet - Do not edit! */package cmp;/** * Data object for Item. * @lomboz generated */public class ItemData extends java.lang.Object implements java.io.Serializable{ private java.lang.String itemID; private java.lang.String supplierID; private java.lang.String description; private java.lang.Integer quantity; private java.lang.Float price; /* begin value object */ /* end value object */ public ItemData() { } public ItemData( java.lang.String itemID,java.lang.String supplierID,java.lang.String description,java.lang.Integer quantity,java.lang.Float price ) { setItemID(itemID); setSupplierID(supplierID); setDescription(description); setQuantity(quantity); setPrice(price); } public ItemData( ItemData otherData ) { setItemID(otherData.getItemID()); setSupplierID(otherData.getSupplierID()); setDescription(otherData.getDescription()); setQuantity(otherData.getQuantity()); setPrice(otherData.getPrice()); } public java.lang.String getPrimaryKey() { return getItemID(); } public java.lang.String getItemID() { return this.itemID; } public void setItemID( java.lang.String itemID ) { this.itemID = itemID; } 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.Float getPrice() { return this.price; } public void setPrice( java.lang.Float price ) { this.price = price; } public String toString() { StringBuffer str = new StringBuffer("{"); str.append("itemID=" + getItemID() + " " + "supplierID=" + getSupplierID() + " " + "description=" + getDescription() + " " + "quantity=" + getQuantity() + " " + "price=" + getPrice()); str.append('}'); return(str.toString()); } public boolean equals( Object pOther ) { if( pOther instanceof ItemData ) { ItemData lTest = (ItemData) pOther; boolean lEquals = true; if( this.itemID == null ) { lEquals = lEquals && ( lTest.itemID == null ); } else { lEquals = lEquals && this.itemID.equals( lTest.itemID ); } 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.itemID != null) ? this.itemID.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 + -