public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamEnumTagHBuff) { CFBamEnumTagHBuff rhs = (CFBamEnumTagHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (getOptionalEnumCode() != null) { if (rhs.getOptionalEnumCode() != null) { if (!getOptionalEnumCode().equals(rhs.getOptionalEnumCode())) { return (false); } } } else { if (rhs.getOptionalEnumCode() != null) { return (false); } } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagBuff) { CFBamEnumTagBuff rhs = (CFBamEnumTagBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (getOptionalEnumCode() != null) { if (rhs.getOptionalEnumCode() != null) { if (!getOptionalEnumCode().equals(rhs.getOptionalEnumCode())) { return (false); } } } else { if (rhs.getOptionalEnumCode() != null) { return (false); } } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByEnumTagTenantIdxKey) { CFBamEnumTagByEnumTagTenantIdxKey rhs = (CFBamEnumTagByEnumTagTenantIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByEnumIdxKey) { CFBamEnumTagByEnumIdxKey rhs = (CFBamEnumTagByEnumIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByDefSchemaIdxKey) { CFBamEnumTagByDefSchemaIdxKey rhs = (CFBamEnumTagByDefSchemaIdxKey) obj; if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByEnumNameIdxKey) { CFBamEnumTagByEnumNameIdxKey rhs = (CFBamEnumTagByEnumNameIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByPrevIdxKey) { CFBamEnumTagByPrevIdxKey rhs = (CFBamEnumTagByPrevIdxKey) obj; if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByNextIdxKey) { CFBamEnumTagByNextIdxKey rhs = (CFBamEnumTagByNextIdxKey) obj; if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagHPKey) { CFBamEnumTagHPKey rhs = (CFBamEnumTagHPKey) 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 (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 CFBamEnumTagPKey) { CFBamEnumTagPKey rhs = (CFBamEnumTagPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public void setEnumTagBuff(CFBamEnumTagBuff src) { setRequiredTenantId(src.getRequiredTenantId()); setRequiredId(src.getRequiredId()); setOptionalDefSchemaTenantId(src.getOptionalDefSchemaTenantId()); setOptionalDefSchemaId(src.getOptionalDefSchemaId()); setRequiredEnumId(src.getRequiredEnumId()); setOptionalEnumCode(src.getOptionalEnumCode()); setRequiredName(src.getRequiredName()); setOptionalPrevTenantId(src.getOptionalPrevTenantId()); setOptionalPrevId(src.getOptionalPrevId()); setOptionalNextTenantId(src.getOptionalNextTenantId()); setOptionalNextId(src.getOptionalNextId()); setRequiredRevision(src.getRequiredRevision()); }