public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFDbTestSchemaDefByUNameIdxKey) { CFDbTestSchemaDefByUNameIdxKey rhs = (CFDbTestSchemaDefByUNameIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredDomainId() != rhs.getRequiredDomainId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFDbTestSchemaDefBuff) { CFDbTestSchemaDefBuff rhs = (CFDbTestSchemaDefBuff) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredDomainId() != rhs.getRequiredDomainId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else { return (false); } }
public int compareTo(Object obj) { if (obj == null) { return (1); } else if (obj instanceof CFDbTestSchemaDefByUNameIdxKey) { CFDbTestSchemaDefByUNameIdxKey rhs = (CFDbTestSchemaDefByUNameIdxKey) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredDomainId() < rhs.getRequiredDomainId()) { return (-1); } else if (getRequiredDomainId() > rhs.getRequiredDomainId()) { return (1); } { int cmp = getRequiredName().compareTo(rhs.getRequiredName()); if (cmp != 0) { return (cmp); } } return (0); } else if (obj instanceof CFDbTestSchemaDefBuff) { CFDbTestSchemaDefBuff rhs = (CFDbTestSchemaDefBuff) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredDomainId() < rhs.getRequiredDomainId()) { return (-1); } else if (getRequiredDomainId() > rhs.getRequiredDomainId()) { return (1); } { int cmp = getRequiredName().compareTo(rhs.getRequiredName()); if (cmp != 0) { return (cmp); } } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }
public void copyOrigToBuff() { CFDbTestSchemaDefBuff origBuff = getOrigAsSchemaDef().getSchemaDefBuff(); CFDbTestSchemaDefBuff myBuff = getSchemaDefBuff(); myBuff.set(origBuff); }
public void copyBuffToOrig() { CFDbTestSchemaDefBuff origBuff = getOrigAsSchemaDef().getSchemaDefBuff(); CFDbTestSchemaDefBuff myBuff = getSchemaDefBuff(); origBuff.set(myBuff); }