code: public boolean hasForeignkey(String name)
      {
          String        realName = (name == null ? "" : name);
          ForeignkeyDef def      = null;
  
          for (Iterator it = getForeignkeys(); it.hasNext();)
          {
              def = (ForeignkeyDef)it.next();
              if (realName.equals(def.getName()))
              {
                  return true;
              }
          }
          return false;
      }
docs: Determines whether this table has a foreignkey of the given name.
  
  @param name The name of the foreignkey
  @return <code>true</code> if there is a foreignkey of that name