ManagerPK.java
资源名称:MyStore.rar [点击查看]
上传用户:hgs128
上传日期:2007-02-03
资源大小:166k
文件大小:2k
源码类别:
百货/超市行业
开发平台:
WINDOWS
- /*
- * Generated by XDoclet - Do not edit!
- */
- package bmp;
- /**
- * Primary key for Manager.
- * @lomboz generated
- */
- public class ManagerPK
- extends java.lang.Object
- implements java.io.Serializable
- {
- private int _hashCode = 0;
- private StringBuffer _toStringValue = null;
- public java.lang.String managerID;
- public ManagerPK()
- {
- }
- public ManagerPK( java.lang.String managerID )
- {
- this.managerID = managerID;
- }
- public java.lang.String getManagerID()
- {
- return managerID;
- }
- public void setManagerID(java.lang.String managerID)
- {
- this.managerID = managerID;
- _hashCode = 0;
- }
- public int hashCode()
- {
- if( _hashCode == 0 )
- {
- if (this.managerID != null) _hashCode += this.managerID.hashCode();
- }
- return _hashCode;
- }
- public boolean equals(Object obj)
- {
- if( !(obj instanceof bmp.ManagerPK) )
- return false;
- bmp.ManagerPK pk = (bmp.ManagerPK)obj;
- boolean eq = true;
- if( obj == null )
- {
- eq = false;
- }
- else
- {
- if( this.managerID == null && ((bmp.ManagerPK)obj).getManagerID() == null )
- {
- eq = true;
- }
- else
- {
- if( this.managerID == null || ((bmp.ManagerPK)obj).getManagerID() == null )
- {
- eq = false;
- }
- else
- {
- eq = eq && this.managerID.equals( pk.managerID );
- }
- }
- }
- return eq;
- }
- /** @return String representation of this pk in the form of [.field1.field2.field3]. */
- public String toString()
- {
- if( _toStringValue == null )
- {
- _toStringValue = new StringBuffer("[.");
- _toStringValue.append(this.managerID).append('.');
- _toStringValue.append(']');
- }
- return _toStringValue.toString();
- }
- }