public void setSecAppBuff(CFSecuritySecAppBuff src) { setRequiredClusterId(src.getRequiredClusterId()); setRequiredSecAppId(src.getRequiredSecAppId()); setRequiredJEEMountName(src.getRequiredJEEMountName()); setRequiredRevision(src.getRequiredRevision()); }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecuritySecAppHBuff) { CFSecuritySecAppHBuff rhs = (CFSecuritySecAppHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredSecAppId() != rhs.getRequiredSecAppId()) { return (false); } if (!getRequiredJEEMountName().equals(rhs.getRequiredJEEMountName())) { return (false); } return (true); } else if (obj instanceof CFSecuritySecAppBuff) { CFSecuritySecAppBuff rhs = (CFSecuritySecAppBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredSecAppId() != rhs.getRequiredSecAppId()) { return (false); } if (!getRequiredJEEMountName().equals(rhs.getRequiredJEEMountName())) { return (false); } return (true); } else if (obj instanceof CFSecuritySecAppByClusterIdxKey) { CFSecuritySecAppByClusterIdxKey rhs = (CFSecuritySecAppByClusterIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecuritySecAppByUJEEMountIdxKey) { CFSecuritySecAppByUJEEMountIdxKey rhs = (CFSecuritySecAppByUJEEMountIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (!getRequiredJEEMountName().equals(rhs.getRequiredJEEMountName())) { return (false); } return (true); } else if (obj instanceof CFSecuritySecAppHPKey) { CFSecuritySecAppHPKey rhs = (CFSecuritySecAppHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredSecAppId() != rhs.getRequiredSecAppId()) { return (false); } return (true); } else if (obj instanceof CFSecurityHPKey) { CFSecurityHPKey rhs = (CFSecurityHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFSecuritySecAppPKey) { CFSecuritySecAppPKey rhs = (CFSecuritySecAppPKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredSecAppId() != rhs.getRequiredSecAppId()) { return (false); } return (true); } else { return (super.equals(obj)); } }