List of usage examples for com.amazonaws.services.simpledb.util SimpleDBUtils quoteValues
public static String quoteValues(Collection<String> values)
From source file:com.shelfmap.simplequery.expression.matcher.ReferToMatcher.java
License:Apache License
@Override public String describe() { StringBuilder sb = new StringBuilder(); sb.append(expression());/*from w ww . ja v a 2 s .c o m*/ if (getValues().size() > 1) { sb.append(" ("); sb.append(SimpleDBUtils.quoteValues(getValues())); sb.append(")"); } else { sb.append(" "); sb.append(SimpleDBUtils.quoteValue(values()[0])); } return sb.toString(); }
From source file:org.grails.datastore.mapping.simpledb.util.SimpleDBUtil.java
License:Apache License
/** * Quotes and escapes a list of values so that they can be used in a SimpleDB query. * @param values/* w w w . ja v a2s. c om*/ * @return */ public static String quoteValues(Collection<String> values) { return SimpleDBUtils.quoteValues(values); }