Add addAll(Map<?, ?).
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user