@Override
    public boolean equals(Object obj) {
      if (this == obj) return true;
      if (obj == null) return false;
      if (getClass() != obj.getClass()) return false;
      Key other = (Key) obj;
      if (resultType == null) {
        if (other.resultType != null) return false;
      }
      else if (!resultType.equals(other.resultType)) return false;
      if (sql == null) {
        if (other.sql != null) return false;
      }
      else if (!sql.equals(other.sql)) return false;
      return true;
    }