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

📄 accountdata.java

📁 《精通SOA:基于服务总线的Struts+EJB+Web Service整合应用开发》原书的实例代码
💻 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 + -