Esempio n. 1
0
  @Override
  public String getConcatSql(final String... values) {
    StringBuffer returnString = new StringBuffer();
    for (String value : values) {
      returnString.append(value).append(" || ");
    }

    return returnString.toString().replaceFirst(" \\|\\| $", "");
  }
Esempio n. 2
0
 @Override
 public String escapeColumnNameList(final String columnNames) {
   StringBuffer sb = new StringBuffer();
   for (String columnName : columnNames.split(",")) {
     if (sb.length() > 0) {
       sb.append(", ");
     }
     sb.append(escapeObjectName(columnName.trim(), Column.class));
   }
   return sb.toString();
 }