public int compare(ICFDbTestTextDefObj lhs, ICFDbTestTextDefObj rhs) {
   if (lhs == null) {
     if (rhs == null) {
       return (0);
     } else {
       return (-1);
     }
   } else if (rhs == null) {
     return (1);
   } else {
     String lhsValue = lhs.getObjQualifiedName();
     String rhsValue = rhs.getObjQualifiedName();
     if (lhsValue == null) {
       if (rhsValue == null) {
         return (0);
       } else {
         return (-1);
       }
     } else if (rhsValue == null) {
       return (1);
     } else {
       return (lhsValue.compareTo(rhsValue));
     }
   }
 }
 public Object getValueAt(int row, int column) {
   final String S_ProcName = "getValueAt";
   if ((row < 0) || (column < -1)) {
     return (null);
   }
   if (arrayOfTextDef == null) {
     return (null);
   }
   int len = arrayOfTextDef.length;
   if (row >= len) {
     return (null);
   }
   ICFDbTestTextDefObj obj = arrayOfTextDef[row];
   if (obj == null) {
     return (null);
   }
   Object retval;
   switch (column) {
     case COLID_ROW_HEADER:
       retval = obj;
       break;
     case COLID_OBJQUALIFIEDNAME:
       retval = obj.getObjQualifiedName();
       break;
     case COLID_OBJKIND:
       String classCode = obj.getClassCode();
       if (classCode.equals("TXTD")) {
         retval = "TextDef";
       } else if (classCode.equals("TXTC")) {
         retval = "TextCol";
       } else if (classCode.equals("TXTT")) {
         retval = "TextType";
       } else {
         throw CFLib.getDefaultExceptionFactory()
             .newRuntimeException(
                 getClass(),
                 S_ProcName,
                 "Unsupported class code \"" + classCode + "\" detected");
       }
       break;
     case COLID_ID:
       retval = new Long(obj.getRequiredId());
       break;
     case COLID_NAME:
       retval = obj.getRequiredName();
       if (retval == null) {
         retval = "";
       }
       break;
     case COLID_DEFAULTVISIBILITY:
       retval = new Boolean(obj.getRequiredDefaultVisibility());
       break;
     case COLID_INITVAL:
       retval = obj.getOptionalInitVal();
       if (retval == null) {
         retval = "";
       }
       break;
     default:
       retval = null;
       break;
   }
   return (retval);
 }