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> TgetPropertyValue(RelationalPersistentProperty property) getValue(AggregatePath path) Return a value for the givenAggregatePath.booleanbooleanhasNonEmptyValue(RelationalPersistentProperty property) Determine whether there is a non empty value for the givenRelationalPersistentProperty.booleanhasValue(AggregatePath path) Determine whether there is a value for the givenAggregatePath.booleanhasValue(RelationalPersistentProperty property) Determine whether there is a value for the givenRelationalPersistentProperty.booleanhasValue(SqlIdentifier identifier) Determine whether there is a value for the givenSqlIdentifier.Contextualize this property value provider.
-
Method Details
-
getPropertyValue
- Specified by:
getPropertyValuein interfacePropertyValueProvider<RelationalPersistentProperty>
-
hasValue
Description copied from interface:MappingRelationalConverter.RelationalPropertyValueProviderDetermine whether there is a value for the givenRelationalPersistentProperty.- Specified by:
hasValuein interfaceMappingRelationalConverter.RelationalPropertyValueProvider- Parameters:
property- the property to check for whether a value is present.
-
hasNonEmptyValue
Description copied from interface:MappingRelationalConverter.RelationalPropertyValueProviderDetermine whether there is a non empty value for the givenRelationalPersistentProperty.- Specified by:
hasNonEmptyValuein interfaceMappingRelationalConverter.RelationalPropertyValueProvider- Parameters:
property- the property to check for whether a value is present.
-
getValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProviderReturn a value for the givenAggregatePath.- Specified by:
getValuein interfaceMappingRelationalConverter.AggregatePathValueProvider- Parameters:
path- will never be null.
-
hasValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProviderDetermine whether there is a value for the givenAggregatePath.- Specified by:
hasValuein interfaceMappingRelationalConverter.AggregatePathValueProvider- Parameters:
path- the path to check for whether a value is present.
-
hasNonEmptyValue
- Specified by:
hasNonEmptyValuein interfaceMappingRelationalConverter.AggregatePathValueProvider
-
hasValue
Description copied from interface:MappingRelationalConverter.AggregatePathValueProviderDetermine whether there is a value for the givenSqlIdentifier.- Specified by:
hasValuein 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.RelationalPropertyValueProviderContextualize this property value provider.- Specified by:
withContextin interfaceMappingRelationalConverter.AggregatePathValueProvider- Specified by:
withContextin interfaceMappingRelationalConverter.RelationalPropertyValueProvider- Parameters:
context- the context to use.
-