com.outworkers.phantom.builder.primitives.Primitives
A way of maintaining compatibility with the underlying Java driver.
A way of maintaining compatibility with the underlying Java driver. The driver often type checks records before casting them and to do that it needs the correct Java Class obtained via classOf[] or .getClass in Java.
We use this because the appropriate Scala type is often different than the Java equivalent. For instance, we don't want users to deal with java.util.List, even if the Java Driver will attempt to look for one.
Converts the type to a CQL compatible string.
Converts the type to a CQL compatible string. The primitive is responsible for handling all aspects of adequate escaping as well. This is used to generate the final queries from domain objects.
The strongly typed value.
The string representation of the value with respect to CQL standards.