public void setServiceBuff(CFSecurityServiceHBuff src) { setRequiredClusterId(src.getRequiredClusterId()); setRequiredServiceId(src.getRequiredServiceId()); setRequiredHostNodeId(src.getRequiredHostNodeId()); setRequiredServiceTypeId(src.getRequiredServiceTypeId()); setRequiredHostPort(src.getRequiredHostPort()); }
public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFSecurityServiceBuff) { CFSecurityServiceBuff rhs = (CFSecurityServiceBuff) 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 (getRequiredServiceId() < rhs.getRequiredServiceId()) { return (-1); } else if (getRequiredServiceId() > rhs.getRequiredServiceId()) { return (1); } if (getRequiredHostNodeId() < rhs.getRequiredHostNodeId()) { return (-1); } else if (getRequiredHostNodeId() > rhs.getRequiredHostNodeId()) { return (1); } if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) { return (-1); } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) { return (1); } if (getRequiredHostPort() < rhs.getRequiredHostPort()) { return (-1); } else if (getRequiredHostPort() > rhs.getRequiredHostPort()) { return (1); } return (0); } else if (obj instanceof CFSecurityServicePKey) { CFSecurityServicePKey rhs = (CFSecurityServicePKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredServiceId() < rhs.getRequiredServiceId()) { return (-1); } else if (getRequiredServiceId() > rhs.getRequiredServiceId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceHPKey) { CFSecurityServiceHPKey rhs = (CFSecurityServiceHPKey) obj; { int lhsRequiredRevision = getRequiredRevision(); int rhsRequiredRevision = rhs.getRequiredRevision(); if (lhsRequiredRevision < rhsRequiredRevision) { return (-1); } else if (lhsRequiredRevision > rhsRequiredRevision) { return (1); } } if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredServiceId() < rhs.getRequiredServiceId()) { return (-1); } else if (getRequiredServiceId() > rhs.getRequiredServiceId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceHBuff) { CFSecurityServiceHBuff rhs = (CFSecurityServiceHBuff) obj; int retval = 0; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredServiceId() < rhs.getRequiredServiceId()) { return (-1); } else if (getRequiredServiceId() > rhs.getRequiredServiceId()) { return (1); } if (getRequiredHostNodeId() < rhs.getRequiredHostNodeId()) { return (-1); } else if (getRequiredHostNodeId() > rhs.getRequiredHostNodeId()) { return (1); } if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) { return (-1); } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) { return (1); } if (getRequiredHostPort() < rhs.getRequiredHostPort()) { return (-1); } else if (getRequiredHostPort() > rhs.getRequiredHostPort()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceByClusterIdxKey) { CFSecurityServiceByClusterIdxKey rhs = (CFSecurityServiceByClusterIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceByHostIdxKey) { CFSecurityServiceByHostIdxKey rhs = (CFSecurityServiceByHostIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredHostNodeId() < rhs.getRequiredHostNodeId()) { return (-1); } else if (getRequiredHostNodeId() > rhs.getRequiredHostNodeId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceByTypeIdxKey) { CFSecurityServiceByTypeIdxKey rhs = (CFSecurityServiceByTypeIdxKey) obj; if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) { return (-1); } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceByUTypeIdxKey) { CFSecurityServiceByUTypeIdxKey rhs = (CFSecurityServiceByUTypeIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredHostNodeId() < rhs.getRequiredHostNodeId()) { return (-1); } else if (getRequiredHostNodeId() > rhs.getRequiredHostNodeId()) { return (1); } if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) { return (-1); } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) { return (1); } return (0); } else if (obj instanceof CFSecurityServiceByUHostPortIdxKey) { CFSecurityServiceByUHostPortIdxKey rhs = (CFSecurityServiceByUHostPortIdxKey) obj; if (getRequiredClusterId() < rhs.getRequiredClusterId()) { return (-1); } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) { return (1); } if (getRequiredHostNodeId() < rhs.getRequiredHostNodeId()) { return (-1); } else if (getRequiredHostNodeId() > rhs.getRequiredHostNodeId()) { return (1); } if (getRequiredHostPort() < rhs.getRequiredHostPort()) { return (-1); } else if (getRequiredHostPort() > rhs.getRequiredHostPort()) { return (1); } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecurityServiceBuff) { CFSecurityServiceBuff rhs = (CFSecurityServiceBuff) 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 (getRequiredServiceId() != rhs.getRequiredServiceId()) { return (false); } if (getRequiredHostNodeId() != rhs.getRequiredHostNodeId()) { return (false); } if (getRequiredServiceTypeId() != rhs.getRequiredServiceTypeId()) { return (false); } if (getRequiredHostPort() != rhs.getRequiredHostPort()) { return (false); } return (true); } else if (obj instanceof CFSecurityServicePKey) { CFSecurityServicePKey rhs = (CFSecurityServicePKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredServiceId() != rhs.getRequiredServiceId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceHBuff) { CFSecurityServiceHBuff rhs = (CFSecurityServiceHBuff) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredServiceId() != rhs.getRequiredServiceId()) { return (false); } if (getRequiredHostNodeId() != rhs.getRequiredHostNodeId()) { return (false); } if (getRequiredServiceTypeId() != rhs.getRequiredServiceTypeId()) { return (false); } if (getRequiredHostPort() != rhs.getRequiredHostPort()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceHPKey) { CFSecurityServiceHPKey rhs = (CFSecurityServiceHPKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredServiceId() != rhs.getRequiredServiceId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceByClusterIdxKey) { CFSecurityServiceByClusterIdxKey rhs = (CFSecurityServiceByClusterIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceByHostIdxKey) { CFSecurityServiceByHostIdxKey rhs = (CFSecurityServiceByHostIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredHostNodeId() != rhs.getRequiredHostNodeId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceByTypeIdxKey) { CFSecurityServiceByTypeIdxKey rhs = (CFSecurityServiceByTypeIdxKey) obj; if (getRequiredServiceTypeId() != rhs.getRequiredServiceTypeId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceByUTypeIdxKey) { CFSecurityServiceByUTypeIdxKey rhs = (CFSecurityServiceByUTypeIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredHostNodeId() != rhs.getRequiredHostNodeId()) { return (false); } if (getRequiredServiceTypeId() != rhs.getRequiredServiceTypeId()) { return (false); } return (true); } else if (obj instanceof CFSecurityServiceByUHostPortIdxKey) { CFSecurityServiceByUHostPortIdxKey rhs = (CFSecurityServiceByUHostPortIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } if (getRequiredHostNodeId() != rhs.getRequiredHostNodeId()) { return (false); } if (getRequiredHostPort() != rhs.getRequiredHostPort()) { return (false); } return (true); } else { boolean retval = super.equals(obj); return (retval); } }