Class SolrJConverter
java.lang.Object
org.springframework.data.solr.core.convert.SolrConverterBase
org.springframework.data.solr.core.convert.SolrJConverter
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,,SolrPersistentProperty, Object, org.apache.solr.common.SolrDocumentBase> org.springframework.data.convert.EntityReader<Object,,org.apache.solr.common.SolrDocumentBase> org.springframework.data.convert.EntityWriter<Object,,org.apache.solr.common.SolrDocumentBase> SolrConverter
Trivial implementation of
SolrConverter delegating conversion to DocumentObjectBinder-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> <R> R<S,R> List<R> ReadSolrDocumentListand convert toListof given typevoidMethods inherited from class org.springframework.data.solr.core.convert.SolrConverterBase
afterPropertiesSet, canConvert, convert, createAndWrite, getConversionService, getCustomConversions, getCustomWriteTargetType, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, isSimpleType, registerCustomConverters, setCustomConversions, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.convert.EntityConverter
getConversionServiceMethods inherited from interface org.springframework.data.solr.core.convert.SolrConverter
write
-
Constructor Details
-
SolrJConverter
public SolrJConverter()
-
-
Method Details
-
getMappingContext
public org.springframework.data.mapping.context.MappingContext<? extends SolrPersistentEntity<?>,SolrPersistentProperty> getMappingContext()- Specified by:
getMappingContextin interfaceorg.springframework.data.convert.EntityConverter<SolrPersistentEntity<?>,SolrPersistentProperty, Object, org.apache.solr.common.SolrDocumentBase>
-
read
Description copied from interface:SolrConverterReadSolrDocumentListand convert toListof given type- Specified by:
readin interfaceSolrConverter- Returns:
- empty list if
source == null || source.isEmpty()
-
read
- Specified by:
readin interfaceorg.springframework.data.convert.EntityReader<Object,org.apache.solr.common.SolrDocumentBase>
-
write
- Specified by:
writein interfaceorg.springframework.data.convert.EntityWriter<Object,org.apache.solr.common.SolrDocumentBase>
-