public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFBamISOLanguageHBuff) { CFBamISOLanguageHBuff rhs = (CFBamISOLanguageHBuff) obj; int retval = 0; { long lhsAuditClusterId = getAuditClusterId(); long rhsAuditClusterId = rhs.getAuditClusterId(); if (lhsAuditClusterId < rhsAuditClusterId) { return (-1); } else if (lhsAuditClusterId > rhsAuditClusterId) { return (1); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp == null) { if (rhsAuditStamp != null) { return (-1); } } else if (rhsAuditStamp == null) { return (1); } else { int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp); if (cmpstat != 0) { return (cmpstat); } } } { short lhsAuditActionId = getAuditActionId(); short rhsAuditActionId = rhs.getAuditActionId(); if (lhsAuditActionId < rhsAuditActionId) { return (-1); } else if (lhsAuditActionId > rhsAuditActionId) { return (1); } } { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId == null) { if (rhsAuditSessionId != null) { return (-1); } } else if (rhsAuditSessionId == null) { return (1); } else { int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId); if (cmpstat != 0) { return (cmpstat); } } } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamISOLanguageHPKey) { CFBamISOLanguageHPKey rhs = (CFBamISOLanguageHPKey) obj; { long lhsAuditClusterId = getAuditClusterId(); long rhsAuditClusterId = rhs.getAuditClusterId(); if (lhsAuditClusterId < rhsAuditClusterId) { return (-1); } else if (lhsAuditClusterId > rhsAuditClusterId) { return (1); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp == null) { if (rhsAuditStamp != null) { return (-1); } } else if (rhsAuditStamp == null) { return (1); } else { int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp); if (cmpstat != 0) { return (cmpstat); } } } { short lhsAuditActionId = getAuditActionId(); short rhsAuditActionId = rhs.getAuditActionId(); if (lhsAuditActionId < rhsAuditActionId) { return (-1); } else if (lhsAuditActionId > rhsAuditActionId) { return (1); } } { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId == null) { if (rhsAuditSessionId != null) { return (-1); } } else if (rhsAuditSessionId == null) { return (1); } else { int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId); if (cmpstat != 0) { return (cmpstat); } } } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) obj; { long lhsAuditClusterId = getAuditClusterId(); long rhsAuditClusterId = rhs.getAuditClusterId(); if (lhsAuditClusterId < rhsAuditClusterId) { return (-1); } else if (lhsAuditClusterId > rhsAuditClusterId) { return (1); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp == null) { if (rhsAuditStamp != null) { return (-1); } } else if (rhsAuditStamp == null) { return (1); } else { int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp); if (cmpstat != 0) { return (cmpstat); } } } { short lhsAuditActionId = getAuditActionId(); short rhsAuditActionId = rhs.getAuditActionId(); if (lhsAuditActionId < rhsAuditActionId) { return (-1); } else if (lhsAuditActionId > rhsAuditActionId) { return (1); } } { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId == null) { if (rhsAuditSessionId != null) { return (-1); } } else if (rhsAuditSessionId == null) { return (1); } else { int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId); if (cmpstat != 0) { return (cmpstat); } } } return (0); } else if (obj instanceof CFBamISOLanguagePKey) { CFBamISOLanguagePKey rhs = (CFBamISOLanguagePKey) obj; if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamISOLanguageBuff) { CFBamISOLanguageBuff rhs = (CFBamISOLanguageBuff) obj; if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), "compareTo", "obj", obj, "CFBamISOLanguageHPKey, CFBamISOLanguagePKey, CFBamISOLanguageBuff"); } }
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 boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamISOLanguageHPKey) { CFBamISOLanguageHPKey rhs = (CFBamISOLanguageHPKey) 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 CFBamISOLanguagePKey) { CFBamISOLanguagePKey rhs = (CFBamISOLanguagePKey) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamISOLanguageHBuff) { CFBamISOLanguageHBuff rhs = (CFBamISOLanguageHBuff) 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); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamISOLanguageBuff) { CFBamISOLanguageBuff rhs = (CFBamISOLanguageBuff) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (false); } }