private String makeParameterDeclarationStringObj(Map<String, Object> params) {
    //Create the parameter declaration string
    StringBuilder paramDecl = new StringBuilder();
    for (Entry<String, Object> entry : params.entrySet()) {
      paramDecl.append(", ");
      paramDecl.append(entry.getValue().getClass().getName());
      paramDecl.append(' ');
      paramDecl.append(entry.getKey());
    }
    return paramDecl.toString();
  }
Makes a JDO query filter string for tables or partitions.
@param dbName Database name.
@param table Table. If null, the query returned is over tables in a database.
  If not null, the query returned is over partitions in a table.
@param tree The expression tree from which JDOQL filter will be made.
@param params Parameters for the filter. Some parameters may be added here.
@param isValidatedFilter Whether the filter was pre-validated for JDOQL pushdown
  by the client; if it was and we fail to create a filter, we will throw.
@return Resulting filter. Can be null if isValidatedFilter is false, and there was error.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java