public void setTSecGroupMemberBuff(CFSecurityTSecGroupMemberBuff src) { setRequiredTenantId(src.getRequiredTenantId()); setRequiredTSecGroupMemberId(src.getRequiredTSecGroupMemberId()); setRequiredTSecGroupId(src.getRequiredTSecGroupId()); setRequiredSecUserId(src.getRequiredSecUserId()); setRequiredRevision(src.getRequiredRevision()); }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecurityTSecGroupMemberHBuff) { CFSecurityTSecGroupMemberHBuff rhs = (CFSecurityTSecGroupMemberHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupMemberId() != rhs.getRequiredTSecGroupMemberId()) { return (false); } if (getRequiredTSecGroupId() != rhs.getRequiredTSecGroupId()) { return (false); } if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberBuff) { CFSecurityTSecGroupMemberBuff rhs = (CFSecurityTSecGroupMemberBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupMemberId() != rhs.getRequiredTSecGroupMemberId()) { return (false); } if (getRequiredTSecGroupId() != rhs.getRequiredTSecGroupId()) { return (false); } if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberByTenantIdxKey) { CFSecurityTSecGroupMemberByTenantIdxKey rhs = (CFSecurityTSecGroupMemberByTenantIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberByGroupIdxKey) { CFSecurityTSecGroupMemberByGroupIdxKey rhs = (CFSecurityTSecGroupMemberByGroupIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupId() != rhs.getRequiredTSecGroupId()) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberByUserIdxKey) { CFSecurityTSecGroupMemberByUserIdxKey rhs = (CFSecurityTSecGroupMemberByUserIdxKey) obj; if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberByUUserIdxKey) { CFSecurityTSecGroupMemberByUUserIdxKey rhs = (CFSecurityTSecGroupMemberByUUserIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupId() != rhs.getRequiredTSecGroupId()) { return (false); } if (!getRequiredSecUserId().equals(rhs.getRequiredSecUserId())) { return (false); } return (true); } else if (obj instanceof CFSecurityTSecGroupMemberHPKey) { CFSecurityTSecGroupMemberHPKey rhs = (CFSecurityTSecGroupMemberHPKey) 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 (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupMemberId() != rhs.getRequiredTSecGroupMemberId()) { 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 CFSecurityTSecGroupMemberPKey) { CFSecurityTSecGroupMemberPKey rhs = (CFSecurityTSecGroupMemberPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTSecGroupMemberId() != rhs.getRequiredTSecGroupMemberId()) { return (false); } return (true); } else { return (super.equals(obj)); } }