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
Modifier and TypeClassDescriptionstatic class
CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter
encapsulates creation ofCustomConversions.ConverterConfiguration
with CouchbaseDB specifics.Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions
-
Constructor Summary
ModifierConstructorDescriptionCouchbaseCustomConversions
(List<?> converters) Create a newCouchbaseCustomConversions
instance registering the given converters.protected
CouchbaseCustomConversions
(CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter conversionConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic CouchbaseCustomConversions
Functional styleCustomConversions
creation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance
.boolean
hasValueConverter
(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 newCouchbaseCustomConversions
instance registering the given converters.- Parameters:
converters
- must not be null.
-
CouchbaseCustomConversions
protected CouchbaseCustomConversions(CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter conversionConfiguration) Create a newCouchbaseCustomConversions
givenCouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter
.- Parameters:
conversionConfiguration
- must not be null.
-
-
Method Details
-
create
public static CouchbaseCustomConversions create(Consumer<CouchbaseCustomConversions.CouchbaseConverterConfigurationAdapter> configurer) Functional styleCustomConversions
creation 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:
hasValueConverter
in classCustomConversions
-