Example usage for com.amazonaws.services.simpledb.util SimpleDBUtils quoteValues

List of usage examples for com.amazonaws.services.simpledb.util SimpleDBUtils quoteValues

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb.util SimpleDBUtils quoteValues.

Prototype

public static String quoteValues(Collection<String> values) 

Source Link

Document

Quotes and escapes a list of values so that they can be used in a SimpleDB query.

Usage

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);
}