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<?> javaType)
Returns the default
DataType for a Class. |
static com.datastax.driver.core.DataType |
getDataTypeFor(com.datastax.driver.core.DataType.Name dataTypeName)
Returns the
DataType for a DataType.Name. |
isSimpleTypepublic static final Set<Class<?>> CASSANDRA_SIMPLE_TYPES
public static final SimpleTypeHolder HOLDER
@Nullable public static com.datastax.driver.core.DataType getDataTypeFor(Class<?> javaType)
DataType for a Class. This method resolves only simple types to a Cassandra
DataType. Other types are resolved to null.javaType - must not be null.DataType for javaClass if resolvable, otherwise null.public static com.datastax.driver.core.DataType getDataTypeFor(com.datastax.driver.core.DataType.Name dataTypeName)
DataType for a DataType.Name.dataTypeName - must not be null.DataType for DataType.Name.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.