Module spring.data.cassandra
Class AbstractCassandraConverter
java.lang.Object
org.springframework.data.cassandra.core.convert.AbstractCassandraConverter
- All Implemented Interfaces:
InitializingBean,CassandraConverter,EntityConverter<CassandraPersistentEntity<?>,,CassandraPersistentProperty, Object, Object> EntityReader<Object,,Object> EntityWriter<Object,Object>
- Direct Known Subclasses:
MappingCassandraConverter
public abstract class AbstractCassandraConverter
extends Object
implements CassandraConverter, InitializingBean
Base class for
CassandraConverter implementations. Sets up a ConversionService and populates basic
converters.- Author:
- Alex Shvid, Matthew T. Adams, Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCassandraConverter(ConversionService conversionService) Create a newAbstractCassandraConverterusing the givenConversionService. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns theCustomConversionsfor this converter.voidsetCustomConversions(CustomConversions conversions) Registers the given custom conversions with the converter.voidsetInstantiators(EntityInstantiators instantiators) RegistersEntityInstantiatorsto customize entity instantiation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.cassandra.core.convert.CassandraConverter
convertToColumnType, convertToColumnType, convertToColumnType, getCodecRegistry, getColumnTypeResolver, getId, getMappingContext, getProjectionFactory, project, writeMethods inherited from interface org.springframework.data.convert.EntityReader
readMethods inherited from interface org.springframework.data.convert.EntityWriter
write
-
Constructor Details
-
AbstractCassandraConverter
Create a newAbstractCassandraConverterusing the givenConversionService.
-
-
Method Details
-
setInstantiators
RegistersEntityInstantiatorsto customize entity instantiation.- Parameters:
instantiators- must not be null.
-
getConversionService
- Specified by:
getConversionServicein interfaceEntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty, Object, Object>
-
setCustomConversions
Registers the given custom conversions with the converter. -
getCustomConversions
Description copied from interface:CassandraConverterReturns theCustomConversionsfor this converter.- Specified by:
getCustomConversionsin interfaceCassandraConverter- Returns:
- will never be null.
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-