Class MappingRelationalConverter.DocumentValueProvider
java.lang.Object
org.springframework.data.relational.core.conversion.MappingRelationalConverter.DocumentValueProvider
- All Implemented Interfaces:
PropertyValueProvider<RelationalPersistentProperty>
,MappingRelationalConverter.AggregatePathValueProvider
,MappingRelationalConverter.RelationalPropertyValueProvider
- Enclosing class:
- MappingRelationalConverter
protected static final class MappingRelationalConverter.DocumentValueProvider
extends Object
implements MappingRelationalConverter.RelationalPropertyValueProvider, MappingRelationalConverter.AggregatePathValueProvider
PropertyValueProvider
to evaluate a SpEL expression if present on the property or simply accesses the field
of the configured source RowDocument
.- Author:
- Oliver Gierke, Mark Paluch, Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescription<T> T
getPropertyValue
(RelationalPersistentProperty property) getValue
(AggregatePath path) Return a value for the givenAggregatePath
.boolean
boolean
hasNonEmptyValue
(RelationalPersistentProperty property) Determine whether there is a non empty value for the givenRelationalPersistentProperty
.boolean
hasValue
(AggregatePath path) Determine whether there is a value for the givenAggregatePath
.boolean
hasValue
(RelationalPersistentProperty property) Determine whether there is a value for the givenRelationalPersistentProperty
.boolean
hasValue
(SqlIdentifier identifier) Determine whether there is a value for the givenSqlIdentifier
.Contextualize this property value provider.
-
Method Details
-
getPropertyValue
- Specified by:
getPropertyValue
in interfacePropertyValueProvider<RelationalPersistentProperty>
-
hasValue
Description copied from interface:MappingRelationalConverter.RelationalPropertyValueProvider
Determine whether there is a value for the givenRelationalPersistentProperty
.- Specified by:
hasValue
in interfaceMappingRelationalConverter.RelationalPropertyValueProvider
- Parameters:
property
- the property to check for whether a value is present.
-
hasNonEmptyValue
Description copied from interface:MappingRelationalConverter.RelationalPropertyValueProvider
Determine whether there is a non empty value for the givenRelationalPersistentProperty
.- Specified by:
hasNonEmptyValue
in interfaceMappingRelationalConverter.RelationalPropertyValueProvider
- Parameters:
property
- the property to check for whether a value is present.
-
getValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProvider
Return a value for the givenAggregatePath
.- Specified by:
getValue
in interfaceMappingRelationalConverter.AggregatePathValueProvider
- Parameters:
path
- will never be null.
-
hasValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProvider
Determine whether there is a value for the givenAggregatePath
.- Specified by:
hasValue
in interfaceMappingRelationalConverter.AggregatePathValueProvider
- Parameters:
path
- the path to check for whether a value is present.
-
hasNonEmptyValue
- Specified by:
hasNonEmptyValue
in interfaceMappingRelationalConverter.AggregatePathValueProvider
-
hasValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProvider
Determine whether there is a value for the givenSqlIdentifier
.- Specified by:
hasValue
in interfaceMappingRelationalConverter.AggregatePathValueProvider
- Parameters:
identifier
- the path to check for whether a value is present.
-
withContext
public MappingRelationalConverter.DocumentValueProvider withContext(MappingRelationalConverter.ConversionContext context) Description copied from interface:MappingRelationalConverter.RelationalPropertyValueProvider
Contextualize this property value provider.- Specified by:
withContext
in interfaceMappingRelationalConverter.AggregatePathValueProvider
- Specified by:
withContext
in interfaceMappingRelationalConverter.RelationalPropertyValueProvider
- Parameters:
context
- the context to use.
-