CustomerData.java
资源名称:MyStore.rar [点击查看]
上传用户:hgs128
上传日期:2007-02-03
资源大小:166k
文件大小:6k
源码类别:
百货/超市行业
开发平台:
WINDOWS
- /*
- * Generated by XDoclet - Do not edit!
- */
- package bmp;
- /**
- * Data object for Customer.
- * @lomboz generated
- */
- public class CustomerData
- extends java.lang.Object
- implements java.io.Serializable
- {
- private java.lang.String customerID;
- private java.lang.String userID;
- private java.lang.String firstName;
- private java.lang.String lastName;
- private java.lang.String address;
- private java.lang.String phone;
- private java.lang.String shareholderStatus;
- /* begin value object */
- /* end value object */
- public CustomerData()
- {
- }
- public CustomerData( java.lang.String customerID,java.lang.String userID,java.lang.String firstName,java.lang.String lastName,java.lang.String address,java.lang.String phone,java.lang.String shareholderStatus )
- {
- setCustomerID(customerID);
- setUserID(userID);
- setFirstName(firstName);
- setLastName(lastName);
- setAddress(address);
- setPhone(phone);
- setShareholderStatus(shareholderStatus);
- }
- public CustomerData( CustomerData otherData )
- {
- setCustomerID(otherData.getCustomerID());
- setUserID(otherData.getUserID());
- setFirstName(otherData.getFirstName());
- setLastName(otherData.getLastName());
- setAddress(otherData.getAddress());
- setPhone(otherData.getPhone());
- setShareholderStatus(otherData.getShareholderStatus());
- }
- public bmp.CustomerPK getPrimaryKey() {
- bmp.CustomerPK pk = new bmp.CustomerPK(this.getCustomerID());
- return pk;
- }
- public java.lang.String getCustomerID()
- {
- return this.customerID;
- }
- public void setCustomerID( java.lang.String customerID )
- {
- this.customerID = customerID;
- }
- public java.lang.String getUserID()
- {
- return this.userID;
- }
- public void setUserID( java.lang.String userID )
- {
- this.userID = userID;
- }
- public java.lang.String getFirstName()
- {
- return this.firstName;
- }
- public void setFirstName( java.lang.String firstName )
- {
- this.firstName = firstName;
- }
- public java.lang.String getLastName()
- {
- return this.lastName;
- }
- public void setLastName( java.lang.String lastName )
- {
- this.lastName = lastName;
- }
- public java.lang.String getAddress()
- {
- return this.address;
- }
- public void setAddress( java.lang.String address )
- {
- this.address = address;
- }
- public java.lang.String getPhone()
- {
- return this.phone;
- }
- public void setPhone( java.lang.String phone )
- {
- this.phone = phone;
- }
- public java.lang.String getShareholderStatus()
- {
- return this.shareholderStatus;
- }
- public void setShareholderStatus( java.lang.String shareholderStatus )
- {
- this.shareholderStatus = shareholderStatus;
- }
- public String toString()
- {
- StringBuffer str = new StringBuffer("{");
- str.append("customerID=" + getCustomerID() + " " + "userID=" + getUserID() + " " + "firstName=" + getFirstName() + " " + "lastName=" + getLastName() + " " + "address=" + getAddress() + " " + "phone=" + getPhone() + " " + "shareholderStatus=" + getShareholderStatus());
- str.append('}');
- return(str.toString());
- }
- public boolean equals( Object pOther )
- {
- if( pOther instanceof CustomerData )
- {
- CustomerData lTest = (CustomerData) pOther;
- boolean lEquals = true;
- if( this.customerID == null )
- {
- lEquals = lEquals && ( lTest.customerID == null );
- }
- else
- {
- lEquals = lEquals && this.customerID.equals( lTest.customerID );
- }
- if( this.userID == null )
- {
- lEquals = lEquals && ( lTest.userID == null );
- }
- else
- {
- lEquals = lEquals && this.userID.equals( lTest.userID );
- }
- if( this.firstName == null )
- {
- lEquals = lEquals && ( lTest.firstName == null );
- }
- else
- {
- lEquals = lEquals && this.firstName.equals( lTest.firstName );
- }
- if( this.lastName == null )
- {
- lEquals = lEquals && ( lTest.lastName == null );
- }
- else
- {
- lEquals = lEquals && this.lastName.equals( lTest.lastName );
- }
- if( this.address == null )
- {
- lEquals = lEquals && ( lTest.address == null );
- }
- else
- {
- lEquals = lEquals && this.address.equals( lTest.address );
- }
- if( this.phone == null )
- {
- lEquals = lEquals && ( lTest.phone == null );
- }
- else
- {
- lEquals = lEquals && this.phone.equals( lTest.phone );
- }
- if( this.shareholderStatus == null )
- {
- lEquals = lEquals && ( lTest.shareholderStatus == null );
- }
- else
- {
- lEquals = lEquals && this.shareholderStatus.equals( lTest.shareholderStatus );
- }
- return lEquals;
- }
- else
- {
- return false;
- }
- }
- public int hashCode()
- {
- int result = 17;
- result = 37*result + ((this.customerID != null) ? this.customerID.hashCode() : 0);
- result = 37*result + ((this.userID != null) ? this.userID.hashCode() : 0);
- result = 37*result + ((this.firstName != null) ? this.firstName.hashCode() : 0);
- result = 37*result + ((this.lastName != null) ? this.lastName.hashCode() : 0);
- result = 37*result + ((this.address != null) ? this.address.hashCode() : 0);
- result = 37*result + ((this.phone != null) ? this.phone.hashCode() : 0);
- result = 37*result + ((this.shareholderStatus != null) ? this.shareholderStatus.hashCode() : 0);
- return result;
- }
- }