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
ConstructorDescriptionCreates a newAbstractRelationalConverter
givenMappingContext
.AbstractRelationalConverter
(RelationalMappingContext context, CustomConversions conversions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingConversionService
used by the converter.Return the underlyingEntityInstantiators
.Returns the underlyingMappingContext
used by the converter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.relational.core.conversion.RelationalConverter
createInstance, getPropertyAccessor, introspectProjection, project, read, readValue, writeValue
-
Constructor Details
-
AbstractRelationalConverter
Creates a newAbstractRelationalConverter
givenMappingContext
.- 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:RelationalConverter
Returns the underlyingConversionService
used by the converter.- Specified by:
getConversionService
in interfaceRelationalConverter
- Returns:
- never null.
-
getConversions
-
getEntityInstantiators
Description copied from interface:RelationalConverter
Return the underlyingEntityInstantiators
.- Specified by:
getEntityInstantiators
in interfaceRelationalConverter
-
getMappingContext
Description copied from interface:RelationalConverter
Returns the underlyingMappingContext
used by the converter.- Specified by:
getMappingContext
in interfaceRelationalConverter
- Returns:
- never null
-