public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecurityTenantByUNameIdxKey) { CFSecurityTenantByUNameIdxKey rhs = (CFSecurityTenantByUNameIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (!getRequiredTenantName().equals(rhs.getRequiredTenantName())) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantBuff) { CFSecurityTenantBuff rhs = (CFSecurityTenantBuff) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (!getRequiredTenantName().equals(rhs.getRequiredTenantName())) { return (false); } return (true); } else { return (false); } }
public int compareTo(Object obj) { if (obj == null) { return (1); } else if (obj instanceof CFSecurityTenantByUNameIdxKey) { CFSecurityTenantByUNameIdxKey rhs = (CFSecurityTenantByUNameIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } { int cmp = getRequiredTenantName().compareTo(rhs.getRequiredTenantName()); if (cmp != 0) { return (cmp); } } return (0); } else if (obj instanceof CFSecurityTenantBuff) { CFSecurityTenantBuff rhs = (CFSecurityTenantBuff) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } { int cmp = getRequiredTenantName().compareTo(rhs.getRequiredTenantName()); if (cmp != 0) { return (cmp); } } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }
public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFSecurityTenantBuff) { CFSecurityTenantBuff rhs = (CFSecurityTenantBuff) obj; int retval = 0; { int cmp = getCreatedByUserId().compareTo(rhs.getCreatedByUserId()); if (cmp != 0) { return (cmp); } cmp = getCreatedAt().compareTo(rhs.getCreatedAt()); if (cmp != 0) { return (cmp); } cmp = getUpdatedByUserId().compareTo(rhs.getUpdatedByUserId()); if (cmp != 0) { return (cmp); } cmp = getUpdatedAt().compareTo(rhs.getUpdatedAt()); if (cmp != 0) { return (cmp); } } if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } { int cmp = getRequiredTenantName().compareTo(rhs.getRequiredTenantName()); if (cmp != 0) { return (cmp); } } return (0); } else if (obj instanceof CFSecurityTenantPKey) { CFSecurityTenantPKey rhs = (CFSecurityTenantPKey) obj; if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFSecurityTenantHPKey) { CFSecurityTenantHPKey rhs = (CFSecurityTenantHPKey) obj; { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFSecurityTenantHBuff) { CFSecurityTenantHBuff rhs = (CFSecurityTenantHBuff) obj; int retval = 0; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } { int cmp = getRequiredTenantName().compareTo(rhs.getRequiredTenantName()); if (cmp != 0) { return (cmp); } } return (0); } else if (obj instanceof CFSecurityTenantByClusterIdxKey) { CFSecurityTenantByClusterIdxKey rhs = (CFSecurityTenantByClusterIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } return (0); } else if (obj instanceof CFSecurityTenantByUNameIdxKey) { CFSecurityTenantByUNameIdxKey rhs = (CFSecurityTenantByUNameIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } { int cmp = getRequiredTenantName().compareTo(rhs.getRequiredTenantName()); if (cmp != 0) { return (cmp); } } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }
public void deleteTenantByUNameIdx( CFSecurityAuthorization Authorization, CFSecurityTenantByUNameIdxKey argKey) { deleteTenantByUNameIdx( Authorization, argKey.getRequiredClusterId(), argKey.getRequiredTenantName()); }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecurityTenantBuff) { CFSecurityTenantBuff rhs = (CFSecurityTenantBuff) obj; if (!getCreatedByUserId().equals(rhs.getCreatedByUserId())) { return (false); } if (!getCreatedAt().equals(rhs.getCreatedAt())) { return (false); } if (!getUpdatedByUserId().equals(rhs.getUpdatedByUserId())) { return (false); } if (!getUpdatedAt().equals(rhs.getUpdatedAt())) { return (false); } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (!getRequiredTenantName().equals(rhs.getRequiredTenantName())) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantPKey) { CFSecurityTenantPKey rhs = (CFSecurityTenantPKey) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantHBuff) { CFSecurityTenantHBuff rhs = (CFSecurityTenantHBuff) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (!getRequiredTenantName().equals(rhs.getRequiredTenantName())) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantHPKey) { CFSecurityTenantHPKey rhs = (CFSecurityTenantHPKey) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantByClusterIdxKey) { CFSecurityTenantByClusterIdxKey rhs = (CFSecurityTenantByClusterIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecurityTenantByUNameIdxKey) { CFSecurityTenantByUNameIdxKey rhs = (CFSecurityTenantByUNameIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (!getRequiredTenantName().equals(rhs.getRequiredTenantName())) { return (false); } return (true); } else { boolean retval = super.equals(obj); return (retval); } }