public class CassandraSimpleTypeHolder extends SimpleTypeHolder
SimpleTypeHolder enriched with Cassandra specific simple types.| Modifier and Type | Field and Description |
|---|---|
static Set<Class<?>> |
CASSANDRA_SIMPLE_TYPES
Set of Cassandra simple types.
|
static SimpleTypeHolder |
HOLDER |
DEFAULT| Modifier and Type | Method and Description |
|---|---|
static com.datastax.driver.core.DataType |
getDataTypeFor(Class<?> javaClass)
Returns the default
DataType for a Class. |
static com.datastax.driver.core.DataType |
getDataTypeFor(com.datastax.driver.core.DataType.Name name)
Returns the
DataType for a DataType.Name. |
isSimpleTypepublic static final Set<Class<?>> CASSANDRA_SIMPLE_TYPES
public static final SimpleTypeHolder HOLDER
public static com.datastax.driver.core.DataType getDataTypeFor(com.datastax.driver.core.DataType.Name name)
DataType for a DataType.Name.name - must not be null.DataType for DataType.Name.@Nullable public static com.datastax.driver.core.DataType getDataTypeFor(Class<?> javaClass)
DataType for a Class. This method resolves only simple types to a Cassandra
DataType. Other types are resolved to null.javaClass - must not be null.DataType for javaClass if resolvable, otherwise null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.