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
ConstructorsModifierConstructorDescriptionprotectedMetadataBackedField(org.springframework.data.relational.core.sql.SqlIdentifier name, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity, MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.protectedMetadataBackedField(org.springframework.data.relational.core.sql.SqlIdentifier name, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity, MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context, @Nullable org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContextwith the givenRelationalPersistentProperty. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.relational.core.sql.SqlIdentifierReturns the key to be used in the mapped document eventually.@Nullable org.springframework.data.relational.core.mapping.RelationalPersistentPropertyorg.springframework.data.core.TypeInformation<?> booleanMethods inherited from class QueryMapper.Field
getRequiredProperty
-
Constructor Details
-
MetadataBackedField
protected MetadataBackedField(org.springframework.data.relational.core.sql.SqlIdentifier name, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity, MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.- Parameters:
name- must not be null or empty.entity- must not be null.context- must not be null.
-
MetadataBackedField
protected MetadataBackedField(org.springframework.data.relational.core.sql.SqlIdentifier name, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity, MappingContext<? extends org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty> context, @Nullable org.springframework.data.relational.core.mapping.RelationalPersistentProperty property) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContextwith 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
public org.springframework.data.relational.core.sql.SqlIdentifier getMappedColumnName()Description copied from class:QueryMapper.FieldReturns the key to be used in the mapped document eventually.- Overrides:
getMappedColumnNamein classQueryMapper.Field- Returns:
-
getTypeHint
public org.springframework.data.core.TypeInformation<?> getTypeHint()- Overrides:
getTypeHintin classQueryMapper.Field
-
isEmbedded
public boolean isEmbedded()- Overrides:
isEmbeddedin classQueryMapper.Field
-
getProperty
public @Nullable org.springframework.data.relational.core.mapping.RelationalPersistentProperty getProperty()- Overrides:
getPropertyin classQueryMapper.Field
-