Uses of Interface
org.springframework.data.cassandra.core.convert.ColumnType
Package
Description
Spring Data Cassandra specific converter infrastructure.
-
Uses of ColumnType in org.springframework.data.cassandra.core.convert
Modifier and TypeInterfaceDescriptioninterface
Descriptor for a Cassandra column type exposing aDataType
.Modifier and TypeMethodDescriptionstatic ColumnType
Creates aColumnType
for aClass
.static ColumnType
ColumnType.create
(TypeInformation<?> type) Creates aColumnType
for aTypeInformation
.ColumnType.getComponentType()
Returns the component type forCollection
s or the key type forMap
s.ColumnType.getMapValueType()
Returns the map value type in case the underlying type is aMap
.default ColumnType
ColumnType.getRequiredComponentType()
Returns the component type forCollection
s, the key type forMap
s or the single generic type if available.default ColumnType
ColumnType.getRequiredMapValueType()
Returns the map value type in case the underlying type is aMap
. or throwIllegalStateException
if the map value type cannot be resolved.static ColumnType
ColumnType.listOf
(ColumnType componentType) Creates a ListColumnType
given itscomponent type
.static ColumnType
ColumnType.mapOf
(ColumnType keyType, ColumnType valueType) Creates a MapColumnType
given itskey and value types
.Resolve aColumnType
from avalue
.static ColumnType
ColumnType.setOf
(ColumnType componentType) Creates a SetColumnType
given itscomponent type
.Modifier and TypeMethodDescriptionCassandraConverter.convertToColumnType
(Object value, ColumnType typeDescriptor) Converts the given object into a value Cassandra will be able to store natively in a column.MappingCassandraConverter.convertToColumnType
(Object value, ColumnType columnType) static ColumnType
ColumnType.listOf
(ColumnType componentType) Creates a ListColumnType
given itscomponent type
.static ColumnType
ColumnType.mapOf
(ColumnType keyType, ColumnType valueType) Creates a MapColumnType
given itskey and value types
.static ColumnType
ColumnType.setOf
(ColumnType componentType) Creates a SetColumnType
given itscomponent type
.