Add addAll(Map<?, ?).

This commit is contained in:
Ray J. Greenwell
2013-04-30 22:41:47 -07:00
parent e5dbb27da2
commit 15b75d1e56
@@ -75,6 +75,17 @@ public class QueryBuilder
return this;
}
/**
* Adds all the parameters in <code>map</code> to the parameters being constructed.
*/
public QueryBuilder addAll (Map<?, ?> map)
{
for (Map.Entry<?, ?> entry : map.entrySet()) {
add(String.valueOf(entry.getKey()), entry.getValue());
}
return this;
}
/**
* Appends the query in this builder to the given StringBuilder with a question mark.
*/