/** * Returns a string representation of the identifier that is safe to use directly in CQL queries. * If necessary, the string will be double-quoted, and any quotes inside the string will be escaped. */ public String toCQLString() { return maybeQuote(text); }
@Override public String toString() { return ColumnIdentifier.maybeQuote(text); } }
@Override public String toString() { return ColumnIdentifier.maybeQuote(text); } }
/** * Returns a string representation of the identifier that is safe to use directly in CQL queries. * If necessary, the string will be double-quoted, and any quotes inside the string will be escaped. */ public String toCQLString() { return maybeQuote(text); }
@Override public String toString() { return ColumnIdentifier.maybeQuote(text); } }
private static String quoteIdentifier(String id) { return ColumnIdentifier.maybeQuote(id); }
/** * Returns a string representation of the identifier that is safe to use directly in CQL queries. * If necessary, the string will be double-quoted, and any quotes inside the string will be escaped. */ public String toCQLString() { return maybeQuote(text); }
@Override public String toCQLString() { return ColumnIdentifier.maybeQuote(columnName); }
/** * Returns a string representation of the identifier that is safe to use directly in CQL queries. * If necessary, the string will be double-quoted, and any quotes inside the string will be escaped. */ public String toCQLString() { return maybeQuote(text); }
@Override public String toString() { return ColumnIdentifier.maybeQuote(text); } }
private static String quoteIdentifier(String id) { return ColumnIdentifier.maybeQuote(id); }
private static String quoteIdentifier(String id) { return ColumnIdentifier.maybeQuote(id); }
@Override public String toString() { if (type.isMultiCell()) return ColumnIdentifier.maybeQuote(name); else return "frozen<" + ColumnIdentifier.maybeQuote(name) + '>'; } }
@Override public String toString() { if (type.isMultiCell()) return ColumnIdentifier.maybeQuote(name); else return "frozen<" + ColumnIdentifier.maybeQuote(name) + '>'; } }
@Override public String toString() { if (type.isMultiCell()) return ColumnIdentifier.maybeQuote(name); else return "frozen<" + ColumnIdentifier.maybeQuote(name) + '>'; } }
@Override public String toString() { if (type.isMultiCell()) return ColumnIdentifier.maybeQuote(name); else return "frozen<" + ColumnIdentifier.maybeQuote(name) + '>'; } }
@Override protected String getColumnNameCQL3() { return ColumnIdentifier.maybeQuote(def.name.toString()); }
@Override public String toCQLString() { return getColumns().stream().map(c -> ColumnIdentifier.maybeQuote(c.name.toString())).collect(Collectors.joining(", ")); } }
target.append(", "); target.append(ColumnIdentifier.maybeQuote(type.fieldNameAsString(i))); target.append(": ");
@Override public String columnNameCQL3(List<String> columnNames) { return new StrBuilder(name().toString()).append('(') .appendWithSeparators(columnNames.stream().map(c->ColumnIdentifier.maybeQuote(c)).toArray(String[]::new), ", ") .append(')') .toString(); } }