?? accountdata.java
字號:
/* * Generated by XDoclet - Do not edit! */package com.sample.cmp.account;/** * Data object for Account. * @generated * @lomboz generated */public class AccountData extends java.lang.Object implements java.io.Serializable{ private java.lang.Integer accountID; private java.lang.Integer userID; private java.math.BigDecimal registrationFee; /* begin value object */ /* end value object */ public AccountData() { } public AccountData( java.lang.Integer accountID,java.lang.Integer userID,java.math.BigDecimal registrationFee ) { setAccountID(accountID); setUserID(userID); setRegistrationFee(registrationFee); } public AccountData( AccountData otherData ) { setAccountID(otherData.getAccountID()); setUserID(otherData.getUserID()); setRegistrationFee(otherData.getRegistrationFee()); } public com.sample.cmp.account.AccountPK getPrimaryKey() { com.sample.cmp.account.AccountPK pk = new com.sample.cmp.account.AccountPK(this.getAccountID(),this.getUserID()); return pk; } public java.lang.Integer getAccountID() { return this.accountID; } public void setAccountID( java.lang.Integer accountID ) { this.accountID = accountID; } public java.lang.Integer getUserID() { return this.userID; } public void setUserID( java.lang.Integer userID ) { this.userID = userID; } public java.math.BigDecimal getRegistrationFee() { return this.registrationFee; } public void setRegistrationFee( java.math.BigDecimal registrationFee ) { this.registrationFee = registrationFee; } public String toString() { StringBuffer str = new StringBuffer("{"); str.append("accountID=" + getAccountID() + " " + "userID=" + getUserID() + " " + "registrationFee=" + getRegistrationFee()); str.append('}'); return(str.toString()); } public boolean equals( Object pOther ) { if( pOther instanceof AccountData ) { AccountData lTest = (AccountData) pOther; boolean lEquals = true; if( this.accountID == null ) { lEquals = lEquals && ( lTest.accountID == null ); } else { lEquals = lEquals && this.accountID.equals( lTest.accountID ); } if( this.userID == null ) { lEquals = lEquals && ( lTest.userID == null ); } else { lEquals = lEquals && this.userID.equals( lTest.userID ); } if( this.registrationFee == null ) { lEquals = lEquals && ( lTest.registrationFee == null ); } else { lEquals = lEquals && this.registrationFee.equals( lTest.registrationFee ); } return lEquals; } else { return false; } } public int hashCode() { int result = 17; result = 37*result + ((this.accountID != null) ? this.accountID.hashCode() : 0); result = 37*result + ((this.userID != null) ? this.userID.hashCode() : 0); result = 37*result + ((this.registrationFee != null) ? this.registrationFee.hashCode() : 0); return result; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -