public abstract class Utils extends Object
Utils class is a copy of the
com.datastax.driver.core.querybuilder.Utils which is package private| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.Alias |
static class |
Utils.CName |
static class |
Utils.CNameIndex |
static class |
Utils.CNameKey |
static class |
Utils.CNameSequence |
static class |
Utils.FCall |
static class |
Utils.RawString |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
appendName(StringBuilder sb,
String name) |
static boolean |
containsBindMarker(Object value) |
static boolean |
containsSpecialValue(Object value) |
static boolean |
isBindMarker(Object value) |
static boolean |
isIdempotent(Object value) |
static boolean |
isSerializable(Object value)
Return
true if the given value is likely to find a suitable
codec to be serialized as a query parameter. |
static StringBuilder |
joinAndAppend(TableInfoImpl<?> tinfo,
com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values,
Collection<? extends org.helenus.driver.impl.Utils.Appendeable> moreValues,
List<Object> variables) |
static StringBuilder |
joinAndAppend(TableInfoImpl<?> tinfo,
com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values,
List<Object> variables) |
static StringBuilder |
joinAndAppendNames(TableInfoImpl<?> tinfo,
com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Iterable<?> values) |
static StringBuilder |
joinAndAppendNamesAndValues(com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
String keySeparator,
Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> mappings,
List<Object> variables) |
static StringBuilder |
joinAndAppendValues(com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Iterable<?> values,
CQLDataType definition,
List<Object> variables) |
static StringBuilder |
joinAndAppendValues(com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Iterable<Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> values,
List<Object> variables) |
static StringBuilder |
joinAndAppendWithNoDuplicates(TableInfoImpl<?> tinfo,
com.datastax.driver.core.TypeCodec<?> codec,
com.datastax.driver.core.CodecRegistry codecRegistry,
StringBuilder sb,
String separator,
Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values,
List<Object> variables) |
public static StringBuilder joinAndAppendNamesAndValues(com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, String keySeparator, Map<String,Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> mappings, List<Object> variables)
public static StringBuilder joinAndAppendWithNoDuplicates(TableInfoImpl<?> tinfo, com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values, List<Object> variables)
public static StringBuilder joinAndAppend(TableInfoImpl<?> tinfo, com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values, List<Object> variables)
public static StringBuilder joinAndAppend(TableInfoImpl<?> tinfo, com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Collection<? extends org.helenus.driver.impl.Utils.Appendeable> values, Collection<? extends org.helenus.driver.impl.Utils.Appendeable> moreValues, List<Object> variables)
public static StringBuilder joinAndAppendNames(TableInfoImpl<?> tinfo, com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Iterable<?> values)
public static StringBuilder joinAndAppendValues(com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Iterable<Triple<Object,CQLDataType,com.datastax.driver.core.TypeCodec<?>>> values, List<Object> variables)
public static StringBuilder joinAndAppendValues(com.datastax.driver.core.TypeCodec<?> codec, com.datastax.driver.core.CodecRegistry codecRegistry, StringBuilder sb, String separator, Iterable<?> values, CQLDataType definition, List<Object> variables)
public static boolean isBindMarker(Object value)
public static boolean containsBindMarker(Object value)
public static boolean containsSpecialValue(Object value)
public static boolean isSerializable(Object value)
true if the given value is likely to find a suitable
codec to be serialized as a query parameter. If the value is not serializable,
it must be included in the query string. Non serializable values include
special values such as function calls, column names and bind markers, and
collections thereof. We also don't serialize fixed size number types. The
reason is that if we do it, we will force a particular size (4 bytes for
ints, ...) and for the query builder, we don't want users to have to bother
with that.value - the value to inspecttrue if the value is serializable, false
otherwisepublic static boolean isIdempotent(Object value)
public static StringBuilder appendName(StringBuilder sb, String name)
Copyright (C) 2015-2017 The Helenus Driver Project Authors.