Class QueryMapper.MetadataBackedField
java.lang.Object
org.springframework.data.r2dbc.query.QueryMapper.Field
org.springframework.data.r2dbc.query.QueryMapper.MetadataBackedField
- Enclosing class:
QueryMapper
Extension of
QueryMapper.Field
to be backed with mapping metadata.- Author:
- Mark Paluch, Roman Chigvintsev, Manousos Mathioudakis, Jens Schauder, Yan Qiang
-
Field Summary
Fields inherited from class QueryMapper.Field
name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.protected
MetadataBackedField
(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, @Nullable RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the key to be used in the mapped document eventually.@Nullable RelationalPersistentProperty
boolean
Methods inherited from class QueryMapper.Field
getRequiredProperty
-
Constructor Details
-
MetadataBackedField
protected MetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
.- Parameters:
name
- must not be null or empty.entity
- must not be null.context
- must not be null.
-
MetadataBackedField
protected MetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, @Nullable RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedField
with the given name,RelationalPersistentEntity
andMappingContext
with the givenRelationalPersistentProperty
.- Parameters:
name
- must not be null or empty.entity
- must not be null.context
- must not be null.property
- may be null.
-
-
Method Details
-
getMappedColumnName
Description copied from class:QueryMapper.Field
Returns the key to be used in the mapped document eventually.- Overrides:
getMappedColumnName
in classQueryMapper.Field
- Returns:
-
getTypeHint
- Overrides:
getTypeHint
in classQueryMapper.Field
-
isEmbedded
public boolean isEmbedded()- Overrides:
isEmbedded
in classQueryMapper.Field
-
getProperty
- Overrides:
getProperty
in classQueryMapper.Field
-