コード例 #1
0
 @Override
 public String bindMany(Object value, QueryContext context) {
   List<String> keys;
   CommandParameters params = context.getParameters();
   if (value instanceof Iterable) {
     keys = addParameters((Iterable) value, params);
   } else {
     Object[] arr = asObjectArray(value);
     if (arr != null) {
       keys = addParameters(Arrays.asList(arr), params);
     } else {
       keys = addParameters(Arrays.asList(value), params);
     }
   }
   return joiner.join(keys).toString();
 }
コード例 #2
0
 @Override
 public String bind(Object value, QueryContext context) {
   return context.getParameters().addValueWithPrefix(prefix, value);
 }