SupplierData.java
资源名称:MyStore.rar [点击查看]
上传用户:hgs128
上传日期:2007-02-03
资源大小:166k
文件大小:6k
源码类别:
百货/超市行业
开发平台:
WINDOWS
- /*
- * Generated by XDoclet - Do not edit!
- */
- package cmp;
- /**
- * Data object for Supplier.
- * @lomboz generated
- */
- public class SupplierData
- extends java.lang.Object
- implements java.io.Serializable
- {
- private java.lang.String supplierid;
- private java.lang.String userid;
- private java.lang.String firstname;
- private java.lang.String lastname;
- private java.lang.String address;
- private java.lang.String message;
- private java.lang.Float credit_limit;
- /* begin value object */
- /* end value object */
- public SupplierData()
- {
- }
- public SupplierData( java.lang.String supplierid,java.lang.String userid,java.lang.String firstname,java.lang.String lastname,java.lang.String address,java.lang.String message,java.lang.Float credit_limit )
- {
- setSupplierid(supplierid);
- setUserid(userid);
- setFirstname(firstname);
- setLastname(lastname);
- setAddress(address);
- setMessage(message);
- setCredit_limit(credit_limit);
- }
- public SupplierData( SupplierData otherData )
- {
- setSupplierid(otherData.getSupplierid());
- setUserid(otherData.getUserid());
- setFirstname(otherData.getFirstname());
- setLastname(otherData.getLastname());
- setAddress(otherData.getAddress());
- setMessage(otherData.getMessage());
- setCredit_limit(otherData.getCredit_limit());
- }
- public java.lang.String getPrimaryKey() {
- return getSupplierid();
- }
- public java.lang.String getSupplierid()
- {
- return this.supplierid;
- }
- public void setSupplierid( java.lang.String supplierid )
- {
- this.supplierid = supplierid;
- }
- 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 getMessage()
- {
- return this.message;
- }
- public void setMessage( java.lang.String message )
- {
- this.message = message;
- }
- public java.lang.Float getCredit_limit()
- {
- return this.credit_limit;
- }
- public void setCredit_limit( java.lang.Float credit_limit )
- {
- this.credit_limit = credit_limit;
- }
- public String toString()
- {
- StringBuffer str = new StringBuffer("{");
- str.append("supplierid=" + getSupplierid() + " " + "userid=" + getUserid() + " " + "firstname=" + getFirstname() + " " + "lastname=" + getLastname() + " " + "address=" + getAddress() + " " + "message=" + getMessage() + " " + "credit_limit=" + getCredit_limit());
- str.append('}');
- return(str.toString());
- }
- public boolean equals( Object pOther )
- {
- if( pOther instanceof SupplierData )
- {
- SupplierData lTest = (SupplierData) pOther;
- boolean lEquals = true;
- if( this.supplierid == null )
- {
- lEquals = lEquals && ( lTest.supplierid == null );
- }
- else
- {
- lEquals = lEquals && this.supplierid.equals( lTest.supplierid );
- }
- 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.message == null )
- {
- lEquals = lEquals && ( lTest.message == null );
- }
- else
- {
- lEquals = lEquals && this.message.equals( lTest.message );
- }
- if( this.credit_limit == null )
- {
- lEquals = lEquals && ( lTest.credit_limit == null );
- }
- else
- {
- lEquals = lEquals && this.credit_limit.equals( lTest.credit_limit );
- }
- return lEquals;
- }
- else
- {
- return false;
- }
- }
- public int hashCode()
- {
- int result = 17;
- result = 37*result + ((this.supplierid != null) ? this.supplierid.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.message != null) ? this.message.hashCode() : 0);
- result = 37*result + ((this.credit_limit != null) ? this.credit_limit.hashCode() : 0);
- return result;
- }
- }