Class CouchbaseCustomConversions
java.lang.Object
org.springframework.data.convert.CustomConversions
org.springframework.data.couchbase.core.convert.CouchbaseCustomConversions
- Direct Known Subclasses:
CustomConversions
Value object to capture custom conversion.
Types that can be mapped directly onto JSON are considered simple ones, because they neither need deeper inspection nor nested conversion.
- Since:
- 2.0
- Author:
- Michael Nitschinger, Oliver Gierke, Mark Paluch, Subhashni Balakrishnan, Michael Reiche, Tigran Babloyan
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCouchbaseCustomConversions.CouchbaseConverterConfigurationAdapterencapsulates creation ofCustomConversions.ConverterConfigurationwith CouchbaseDB specifics.Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions -
Constructor Summary
ConstructorsModifierConstructorDescriptionCouchbaseCustomConversions(List<?> converters) Create a newCouchbaseCustomConversionsinstance registering the given converters.protectedCouchbaseCustomConversions(CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter conversionConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic CouchbaseCustomConversionsFunctional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.booleanhasValueConverter(PersistentProperty<?> property) Methods inherited from class org.springframework.data.convert.CustomConversions
getCustomWriteTarget, getCustomWriteTarget, getPropertyValueConversions, getSimpleTypeHolder, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, isSimpleType, registerConvertersIn
-
Constructor Details
-
CouchbaseCustomConversions
Create a newCouchbaseCustomConversionsinstance registering the given converters.- Parameters:
converters- must not be null.
-
CouchbaseCustomConversions
protected CouchbaseCustomConversions(CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter conversionConfiguration) Create a newCouchbaseCustomConversionsgivenCouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter.- Parameters:
conversionConfiguration- must not be null.
-
-
Method Details
-
create
public static CouchbaseCustomConversions create(Consumer<CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter> configurer) Functional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.- Parameters:
configurer- must not be null.
-
hasValueConverter
- Overrides:
hasValueConverterin classCustomConversions
-