public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamSecurityScopeHBuff) { CFBamSecurityScopeHBuff rhs = (CFBamSecurityScopeHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamSecurityScopeBuff) { CFBamSecurityScopeBuff rhs = (CFBamSecurityScopeBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamSecurityScopeByUNameIdxKey) { CFBamSecurityScopeByUNameIdxKey rhs = (CFBamSecurityScopeByUNameIdxKey) obj; if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamSecurityScopeHPKey) { CFBamSecurityScopeHPKey rhs = (CFBamSecurityScopeHPKey) 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 (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) 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 CFBamSecurityScopePKey) { CFBamSecurityScopePKey rhs = (CFBamSecurityScopePKey) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public void setSecurityScopeBuff(CFBamSecurityScopeBuff src) { setRequiredId(src.getRequiredId()); setRequiredName(src.getRequiredName()); setRequiredRevision(src.getRequiredRevision()); }