public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFBamPopSubDep3Buff) { CFBamPopSubDep3Buff rhs = (CFBamPopSubDep3Buff) obj; int retval = super.compareTo(rhs); if (retval != 0) { return (retval); } return (0); } else if (obj instanceof CFBamPopSubDep3ByContPopDep2IdxKey) { CFBamPopSubDep3ByContPopDep2IdxKey rhs = (CFBamPopSubDep3ByContPopDep2IdxKey) obj; if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) { return (-1); } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) { return (1); } if (getRequiredContPopDep2Id() < rhs.getRequiredContPopDep2Id()) { return (-1); } else if (getRequiredContPopDep2Id() > rhs.getRequiredContPopDep2Id()) { return (1); } return (0); } else if (obj instanceof CFBamPopSubDep3ByUNameIdxKey) { CFBamPopSubDep3ByUNameIdxKey rhs = (CFBamPopSubDep3ByUNameIdxKey) obj; if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) { return (-1); } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) { return (1); } if (getRequiredContPopDep2Id() < rhs.getRequiredContPopDep2Id()) { return (-1); } else if (getRequiredContPopDep2Id() > rhs.getRequiredContPopDep2Id()) { return (1); } { int cmp = getRequiredName().compareTo(rhs.getRequiredName()); if (cmp != 0) { return (cmp); } } return (0); } else if (obj instanceof CFBamPopSubDep3HBuff) { CFBamPopSubDep3HBuff rhs = (CFBamPopSubDep3HBuff) obj; int retval = super.compareTo(rhs); if (retval != 0) { return (retval); } { 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 (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } if (getOptionalDefSchemaTenantId() != null) { Long lhsDefSchemaTenantId = getOptionalDefSchemaTenantId(); if (rhs.getOptionalDefSchemaTenantId() != null) { Long rhsDefSchemaTenantId = rhs.getOptionalDefSchemaTenantId(); int cmp = lhsDefSchemaTenantId.compareTo(rhsDefSchemaTenantId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (-1); } } if (getOptionalDefSchemaId() != null) { Long lhsDefSchemaId = getOptionalDefSchemaId(); if (rhs.getOptionalDefSchemaId() != null) { Long rhsDefSchemaId = rhs.getOptionalDefSchemaId(); int cmp = lhsDefSchemaId.compareTo(rhsDefSchemaId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalDefSchemaId() != null) { return (-1); } } if (getRequiredRelationTenantId() < rhs.getRequiredRelationTenantId()) { return (-1); } else if (getRequiredRelationTenantId() > rhs.getRequiredRelationTenantId()) { return (1); } if (getRequiredRelationId() < rhs.getRequiredRelationId()) { return (-1); } else if (getRequiredRelationId() > rhs.getRequiredRelationId()) { return (1); } if (getRequiredContTenantId() < rhs.getRequiredContTenantId()) { return (-1); } else if (getRequiredContTenantId() > rhs.getRequiredContTenantId()) { return (1); } if (getRequiredContPopDep2Id() < rhs.getRequiredContPopDep2Id()) { return (-1); } else if (getRequiredContPopDep2Id() > rhs.getRequiredContPopDep2Id()) { return (1); } { int cmp = getRequiredName().compareTo(rhs.getRequiredName()); if (cmp != 0) { return (cmp); } } return (0); } else { return (super.compareTo(obj)); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamPopSubDep3HBuff) { CFBamPopSubDep3HBuff rhs = (CFBamPopSubDep3HBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) { return (false); } if (getRequiredContPopDep2Id() != rhs.getRequiredContPopDep2Id()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamPopSubDep3Buff) { CFBamPopSubDep3Buff rhs = (CFBamPopSubDep3Buff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) { return (false); } if (getRequiredContPopDep2Id() != rhs.getRequiredContPopDep2Id()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamPopSubDep3ByContPopDep2IdxKey) { CFBamPopSubDep3ByContPopDep2IdxKey rhs = (CFBamPopSubDep3ByContPopDep2IdxKey) obj; if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) { return (false); } if (getRequiredContPopDep2Id() != rhs.getRequiredContPopDep2Id()) { return (false); } return (true); } else if (obj instanceof CFBamPopSubDep3ByUNameIdxKey) { CFBamPopSubDep3ByUNameIdxKey rhs = (CFBamPopSubDep3ByUNameIdxKey) obj; if (getRequiredContTenantId() != rhs.getRequiredContTenantId()) { return (false); } if (getRequiredContPopDep2Id() != rhs.getRequiredContPopDep2Id()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else { return (super.equals(obj)); } }