public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFDbTestInt64ColHBuff) { CFDbTestInt64ColHBuff rhs = (CFDbTestInt64ColHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredTableId() != rhs.getRequiredTableId()) { return (false); } return (true); } else if (obj instanceof CFDbTestInt64ColBuff) { CFDbTestInt64ColBuff rhs = (CFDbTestInt64ColBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredTableId() != rhs.getRequiredTableId()) { return (false); } return (true); } else if (obj instanceof CFDbTestInt64ColByTableIdxKey) { CFDbTestInt64ColByTableIdxKey rhs = (CFDbTestInt64ColByTableIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTableId() != rhs.getRequiredTableId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public void setInt64ColBuff(CFDbTestInt64ColHBuff src) { super.setInt64DefBuff(src); setRequiredTableId(src.getRequiredTableId()); }
public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFDbTestInt64ColBuff) { CFDbTestInt64ColBuff rhs = (CFDbTestInt64ColBuff) obj; int retval = super.compareTo(rhs); if (retval != 0) { return (retval); } return (0); } else if (obj instanceof CFDbTestInt64ColByTableIdxKey) { CFDbTestInt64ColByTableIdxKey rhs = (CFDbTestInt64ColByTableIdxKey) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredTableId() < rhs.getRequiredTableId()) { return (-1); } else if (getRequiredTableId() > rhs.getRequiredTableId()) { return (1); } return (0); } else if (obj instanceof CFDbTestInt64ColHBuff) { CFDbTestInt64ColHBuff rhs = (CFDbTestInt64ColHBuff) 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 (getRequiredScopeId() < rhs.getRequiredScopeId()) { return (-1); } else if (getRequiredScopeId() > rhs.getRequiredScopeId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } { int cmp = getRequiredName().compareTo(rhs.getRequiredName()); if (cmp != 0) { return (cmp); } } if (getRequiredDefaultVisibility()) { if (!rhs.getRequiredDefaultVisibility()) { return (1); } } else { if (rhs.getRequiredDefaultVisibility()) { return (-1); } } if (getOptionalPrevTenantId() != null) { Long lhsPrevTenantId = getOptionalPrevTenantId(); if (rhs.getOptionalPrevTenantId() != null) { Long rhsPrevTenantId = rhs.getOptionalPrevTenantId(); int cmp = lhsPrevTenantId.compareTo(rhsPrevTenantId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalPrevTenantId() != null) { return (-1); } } if (getOptionalPrevId() != null) { Long lhsPrevId = getOptionalPrevId(); if (rhs.getOptionalPrevId() != null) { Long rhsPrevId = rhs.getOptionalPrevId(); int cmp = lhsPrevId.compareTo(rhsPrevId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalPrevId() != null) { return (-1); } } if (getOptionalNextTenantId() != null) { Long lhsNextTenantId = getOptionalNextTenantId(); if (rhs.getOptionalNextTenantId() != null) { Long rhsNextTenantId = rhs.getOptionalNextTenantId(); int cmp = lhsNextTenantId.compareTo(rhsNextTenantId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalNextTenantId() != null) { return (-1); } } if (getOptionalNextId() != null) { Long lhsNextId = getOptionalNextId(); if (rhs.getOptionalNextId() != null) { Long rhsNextId = rhs.getOptionalNextId(); int cmp = lhsNextId.compareTo(rhsNextId); if (cmp != 0) { return (cmp); } } else { return (1); } } else { if (rhs.getOptionalNextId() != null) { return (-1); } } if (getRequiredTableId() < rhs.getRequiredTableId()) { return (-1); } else if (getRequiredTableId() > rhs.getRequiredTableId()) { return (1); } return (0); } else { return (super.compareTo(obj)); } }