public int compareTo(Object obj) {
   if (obj == null) {
     return (1);
   } else if (obj instanceof CFSecurityISOCountryLanguageByCountryIdxKey) {
     CFSecurityISOCountryLanguageByCountryIdxKey rhs =
         (CFSecurityISOCountryLanguageByCountryIdxKey) obj;
     if (getRequiredISOCountryId() < rhs.getRequiredISOCountryId()) {
       return (-1);
     } else if (getRequiredISOCountryId() > rhs.getRequiredISOCountryId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFSecurityISOCountryLanguageBuff) {
     CFSecurityISOCountryLanguageBuff rhs = (CFSecurityISOCountryLanguageBuff) obj;
     if (getRequiredISOCountryId() < rhs.getRequiredISOCountryId()) {
       return (-1);
     } else if (getRequiredISOCountryId() > rhs.getRequiredISOCountryId()) {
       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 CFSecurityISOCountryLanguageByCountryIdxKey) {
     CFSecurityISOCountryLanguageByCountryIdxKey rhs =
         (CFSecurityISOCountryLanguageByCountryIdxKey) obj;
     if (getRequiredISOCountryId() != rhs.getRequiredISOCountryId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFSecurityISOCountryLanguageBuff) {
     CFSecurityISOCountryLanguageBuff rhs = (CFSecurityISOCountryLanguageBuff) obj;
     if (getRequiredISOCountryId() != rhs.getRequiredISOCountryId()) {
       return (false);
     }
     return (true);
   } else {
     return (false);
   }
 }