ManagerData.java
资源名称:MyStore.rar [点击查看]
上传用户:hgs128
上传日期:2007-02-03
资源大小:166k
文件大小:5k
源码类别:
百货/超市行业
开发平台:
WINDOWS
- /*
- * Generated by XDoclet - Do not edit!
- */
- package bmp;
- /**
- * Data object for Manager.
- * @lomboz generated
- */
- public class ManagerData
- extends java.lang.Object
- implements java.io.Serializable
- {
- private java.lang.String managerID;
- 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 float salary;
- /* begin value object */
- /* end value object */
- public ManagerData()
- {
- }
- public ManagerData( java.lang.String managerID,java.lang.String userID,java.lang.String firstName,java.lang.String lastName,java.lang.String address,java.lang.String message,float salary )
- {
- setManagerID(managerID);
- setUserID(userID);
- setFirstName(firstName);
- setLastName(lastName);
- setAddress(address);
- setMessage(message);
- setSalary(salary);
- }
- public ManagerData( ManagerData otherData )
- {
- setManagerID(otherData.getManagerID());
- setUserID(otherData.getUserID());
- setFirstName(otherData.getFirstName());
- setLastName(otherData.getLastName());
- setAddress(otherData.getAddress());
- setMessage(otherData.getMessage());
- setSalary(otherData.getSalary());
- }
- public bmp.ManagerPK getPrimaryKey() {
- bmp.ManagerPK pk = new bmp.ManagerPK(this.getManagerID());
- return pk;
- }
- public java.lang.String getManagerID()
- {
- return this.managerID;
- }
- public void setManagerID( java.lang.String managerID )
- {
- this.managerID = managerID;
- }
- 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 float getSalary()
- {
- return this.salary;
- }
- public void setSalary( float salary )
- {
- this.salary = salary;
- }
- public String toString()
- {
- StringBuffer str = new StringBuffer("{");
- str.append("managerID=" + getManagerID() + " " + "userID=" + getUserID() + " " + "firstName=" + getFirstName() + " " + "lastName=" + getLastName() + " " + "address=" + getAddress() + " " + "message=" + getMessage() + " " + "salary=" + getSalary());
- str.append('}');
- return(str.toString());
- }
- public boolean equals( Object pOther )
- {
- if( pOther instanceof ManagerData )
- {
- ManagerData lTest = (ManagerData) pOther;
- boolean lEquals = true;
- if( this.managerID == null )
- {
- lEquals = lEquals && ( lTest.managerID == null );
- }
- else
- {
- lEquals = lEquals && this.managerID.equals( lTest.managerID );
- }
- 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 );
- }
- lEquals = lEquals && this.salary == lTest.salary;
- return lEquals;
- }
- else
- {
- return false;
- }
- }
- public int hashCode()
- {
- int result = 17;
- result = 37*result + ((this.managerID != null) ? this.managerID.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 + Float.floatToIntBits(salary);
- return result;
- }
- }