Class QueryMapper.MetadataBackedField
java.lang.Object
org.springframework.data.jdbc.core.convert.QueryMapper.Field
org.springframework.data.jdbc.core.convert.QueryMapper.MetadataBackedField
- Enclosing class:
- QueryMapper
Extension of
QueryMapper.Field to be backed with mapping metadata.-
Field Summary
Fields inherited from class org.springframework.data.jdbc.core.convert.QueryMapper.Field
name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContext.protectedMetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, RelationalPersistentProperty property, JdbcConverter converter) Creates a newQueryMapper.MetadataBackedFieldwith the given name,RelationalPersistentEntityandMappingContextwith the givenRelationalPersistentProperty. -
Method Summary
Modifier and TypeMethodDescriptionReturns the key to be used in the mapped document eventually.getPath()boolean
-
Constructor Details
-
MetadataBackedField
protected MetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, JdbcConverter converter) 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.converter- must not be null.
-
MetadataBackedField
protected MetadataBackedField(SqlIdentifier name, RelationalPersistentEntity<?> entity, MappingContext<? extends RelationalPersistentEntity<?>, RelationalPersistentProperty> context, @Nullable RelationalPersistentProperty property, JdbcConverter converter) 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.converter- may be null.
-
-
Method Details
-
getMappedColumnName
Description copied from class:QueryMapper.FieldReturns the key to be used in the mapped document eventually.- Overrides:
getMappedColumnNamein classQueryMapper.Field- Returns:
- the key to be used in the mapped document eventually.
-
getPath
-
isEmbedded
public boolean isEmbedded()- Overrides:
isEmbeddedin classQueryMapper.Field
-
getTypeHint
- Overrides:
getTypeHintin classQueryMapper.Field
-
getSqlType
- Overrides:
getSqlTypein classQueryMapper.Field
-