Module spring.data.relational
Class AbstractRelationalConverter
java.lang.Object
org.springframework.data.relational.core.conversion.AbstractRelationalConverter
- All Implemented Interfaces:
RelationalConverter
- Direct Known Subclasses:
MappingRelationalConverter
Base class for
RelationalConverter implementations. Sets up a ConfigurableConversionService and
populates basic converters. Allows registering CustomConversions.- Since:
- 3.2
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAbstractRelationalConvertergivenMappingContext.AbstractRelationalConverter(RelationalMappingContext context, CustomConversions conversions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingConversionServiceused by the converter.Return the underlyingEntityInstantiators.Returns the underlyingMappingContextused by the converter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.conversion.RelationalConverter
createInstance, getPropertyAccessor, introspectProjection, project, read, readValue, writeValue
-
Constructor Details
-
AbstractRelationalConverter
Creates a newAbstractRelationalConvertergivenMappingContext.- Parameters:
context- must not be null.
-
AbstractRelationalConverter
- Parameters:
context- must not be null.conversions- must not be null.
-
-
Method Details
-
getConversionService
Description copied from interface:RelationalConverterReturns the underlyingConversionServiceused by the converter.- Specified by:
getConversionServicein interfaceRelationalConverter- Returns:
- never null.
-
getConversions
-
getEntityInstantiators
Description copied from interface:RelationalConverterReturn the underlyingEntityInstantiators.- Specified by:
getEntityInstantiatorsin interfaceRelationalConverter
-
getMappingContext
Description copied from interface:RelationalConverterReturns the underlyingMappingContextused by the converter.- Specified by:
getMappingContextin interfaceRelationalConverter- Returns:
- never null
-