Class UdtValueProvider
java.lang.Object
org.springframework.data.cassandra.core.convert.UdtValueProvider
- All Implemented Interfaces:
CassandraValueProvider
,PropertyValueProvider<CassandraPersistentProperty>
- Direct Known Subclasses:
CassandraUDTValueProvider
CassandraValueProvider
to read property values from a UdtValue
.- Since:
- 3.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorDescriptionUdtValueProvider
(com.datastax.oss.driver.api.core.data.UdtValue udtValue, ValueExpressionEvaluator evaluator) -
Method Summary
Modifier and TypeMethodDescription<T> T
getPropertyValue
(CassandraPersistentProperty property) Returns whether the underlying source.boolean
hasProperty
(CassandraPersistentProperty property) Returns whether the underlying source contains a data source for the givenCassandraPersistentProperty
.
-
Constructor Details
-
UdtValueProvider
public UdtValueProvider(com.datastax.oss.driver.api.core.data.UdtValue udtValue, ValueExpressionEvaluator evaluator) - Parameters:
udtValue
- must not be null.evaluator
- must not be null.
-
-
Method Details
-
getPropertyValue
- Specified by:
getPropertyValue
in interfacePropertyValueProvider<CassandraPersistentProperty>
-
hasProperty
Description copied from interface:CassandraValueProvider
Returns whether the underlying source contains a data source for the givenCassandraPersistentProperty
.- Specified by:
hasProperty
in interfaceCassandraValueProvider
- Parameters:
property
- must not be null.- Returns:
- true if the underlying source contains a data source for the given
CassandraPersistentProperty
.
-
getSource
Description copied from interface:CassandraValueProvider
Returns whether the underlying source.- Specified by:
getSource
in interfaceCassandraValueProvider
- Returns:
- the underlying source for this
CassandraValueProvider
.
-