Package org.springframework.data.convert
Interface EntityConverter<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>,T,S>
- Type Parameters:
E
- the concretePersistentEntity
implementation the converter is based on.P
- the concretePersistentProperty
implementation the converter is based on.T
- the most common type theEntityConverter
can actually convert.S
- the store specific source and sink anEntityConverter
can deal with.
- All Superinterfaces:
EntityReader<T,
,S> EntityWriter<T,
S>
public interface EntityConverter<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>,T,S>
extends EntityReader<T,S>, EntityWriter<T,S>
Combined
EntityReader
and EntityWriter
and add the ability to access a MappingContext
and
ConversionService
.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.convert.ConversionService
Returns the underlyingConversionService
used by the converter.MappingContext<? extends E,
P> Returns the underlyingMappingContext
used by the converter.Methods inherited from interface org.springframework.data.convert.EntityReader
read
Methods inherited from interface org.springframework.data.convert.EntityWriter
write
-
Method Details
-
getMappingContext
MappingContext<? extends E,P> getMappingContext()Returns the underlyingMappingContext
used by the converter.- Returns:
- never null
-
getConversionService
org.springframework.core.convert.ConversionService getConversionService()Returns the underlyingConversionService
used by the converter.- Returns:
- never null.
-