📄 previoussteppk.java
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. *//* * Generated by XDoclet - Do not edit! */package com.opensymphony.workflow.spi.ejb;/** * Primary key for CurrentStepPrev. * @author Hani Suleiman (hani@formicary.net) Date: Apr 7, 2003 Time: 8:17:26 PM */public class PreviousStepPK extends java.lang.Object implements java.io.Serializable { //~ Instance fields //////////////////////////////////////////////////////// public java.lang.Long id; public java.lang.Long previousId; //~ Constructors /////////////////////////////////////////////////////////// public PreviousStepPK() { } public PreviousStepPK(java.lang.Long id, java.lang.Long previousId) { this.id = id; this.previousId = previousId; } //~ Methods //////////////////////////////////////////////////////////////// public void setId(java.lang.Long id) { this.id = id; } public java.lang.Long getId() { return id; } public void setPreviousId(java.lang.Long previousId) { this.previousId = previousId; } public java.lang.Long getPreviousId() { return previousId; } public boolean equals(Object obj) { if (!(obj instanceof com.opensymphony.workflow.spi.ejb.PreviousStepPK)) { return false; } com.opensymphony.workflow.spi.ejb.PreviousStepPK pk = (com.opensymphony.workflow.spi.ejb.PreviousStepPK) obj; boolean eq = true; if (obj == null) { eq = false; } else { if ((this.id == null) && (((com.opensymphony.workflow.spi.ejb.PreviousStepPK) obj).getId() == null)) { eq = true; } else { if ((this.id == null) || (((com.opensymphony.workflow.spi.ejb.PreviousStepPK) obj).getId() == null)) { eq = false; } else { eq = eq && this.id.equals(pk.id); } } if ((this.previousId == null) && (((com.opensymphony.workflow.spi.ejb.PreviousStepPK) obj).getPreviousId() == null)) { eq = true; } else { if ((this.previousId == null) || (((com.opensymphony.workflow.spi.ejb.PreviousStepPK) obj).getPreviousId() == null)) { eq = false; } else { eq = eq && this.previousId.equals(pk.previousId); } } } return eq; } public int hashCode() { int hashCode = 0; if (this.id != null) { hashCode += this.id.hashCode(); } if (this.previousId != null) { hashCode += this.previousId.hashCode(); } return hashCode; } /** @return String representation of this pk in the form of [.field1.field2.field3]. */ public String toString() { StringBuffer buffer = new StringBuffer("[."); buffer.append(this.id).append('.'); buffer.append(this.previousId).append('.'); buffer.append(']'); return buffer.toString(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -