Module spring.data.cassandra
Class QueryMapper.Field
java.lang.Object
org.springframework.data.cassandra.core.convert.QueryMapper.Field
- Direct Known Subclasses:
QueryMapper.MetadataBackedField
- Enclosing class:
- QueryMapper
Value object to represent a field and its meta-information.
- Author:
- Mark Paluch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the key to be used in the mapped document eventually.Returns the underlyingCassandraPersistentPropertybacking the field.with(ColumnName name) Returns a newQueryMapper.Fieldwith the given name.
-
Field Details
-
name
-
-
Method Details
-
with
Returns a newQueryMapper.Fieldwith the given name.- Parameters:
name- must not be null or empty.- Returns:
- a new
QueryMapper.Fieldwith the given name.
-
getProperty
Returns the underlyingCassandraPersistentPropertybacking the field. For path traversals this will be the property that represents the value to handle. This means it'll be the leaf property for plain paths or the association property in case we refer to an association somewhere in the path. -
getMappedKey
Returns the key to be used in the mapped document eventually.
-