Class AbstractCassandraConverter

java.lang.Object
org.springframework.data.cassandra.core.convert.AbstractCassandraConverter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, CassandraConverter, org.springframework.data.convert.EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>, org.springframework.data.convert.EntityReader<Object,Object>, org.springframework.data.convert.EntityWriter<Object,Object>
Direct Known Subclasses:
MappingCassandraConverter

public abstract class AbstractCassandraConverter extends Object implements CassandraConverter, org.springframework.beans.factory.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 Details

    • AbstractCassandraConverter

      protected AbstractCassandraConverter(org.springframework.core.convert.ConversionService conversionService)
      Create a new AbstractCassandraConverter using the given ConversionService.
  • Method Details

    • setInstantiators

      public void setInstantiators(org.springframework.data.mapping.model.EntityInstantiators instantiators)
      Registers EntityInstantiators to customize entity instantiation.
      Parameters:
      instantiators - must not be null.
    • getConversionService

      public org.springframework.core.convert.ConversionService getConversionService()
      Specified by:
      getConversionService in interface org.springframework.data.convert.EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>
    • setCustomConversions

      public void setCustomConversions(org.springframework.data.convert.CustomConversions conversions)
      Registers the given custom conversions with the converter.
    • getCustomConversions

      public org.springframework.data.convert.CustomConversions getCustomConversions()
      Description copied from interface: CassandraConverter
      Returns the CustomConversions for this converter.
      Specified by:
      getCustomConversions in interface CassandraConverter
      Returns:
      will never be null.
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean