|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.convert.QueryMapper.Field
org.springframework.data.mongodb.core.convert.QueryMapper.MetadataBackedField
protected static class QueryMapper.MetadataBackedField
Extension of DocumentField to be backed with mapping metadata.
| Field Summary |
|---|
| Fields inherited from class org.springframework.data.mongodb.core.convert.QueryMapper.Field |
|---|
name |
| Constructor Summary | |
|---|---|
QueryMapper.MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
Creates a new QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext. |
|
| Method Summary | |
|---|---|
String |
getMappedKey()
Returns the key to be used in the mapped document eventually. |
MongoPersistentProperty |
getProperty()
Returns the underlying MongoPersistentProperty backing the field. |
protected Converter<MongoPersistentProperty,String> |
getPropertyConverter()
Return the Converter to be used to created the mapped key. |
MongoPersistentEntity<?> |
getPropertyEntity()
Returns the MongoPersistentEntity that field is conatined in. |
boolean |
isAssociation()
Returns whether the field represents an association. |
boolean |
isIdField()
Returns whether the current field is the id field. |
QueryMapper.MetadataBackedField |
with(String name)
Returns a new DocumentField with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryMapper.MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context)
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext.
name - must not be null or empty.entity - must not be null.context - must not be null.| Method Detail |
|---|
public QueryMapper.MetadataBackedField with(String name)
QueryMapper.FieldDocumentField with the given name.
with in class QueryMapper.Fieldname - must not be null or empty.
public boolean isIdField()
QueryMapper.Field
isIdField in class QueryMapper.Fieldpublic MongoPersistentProperty getProperty()
QueryMapper.FieldMongoPersistentProperty backing the field.
getProperty in class QueryMapper.Fieldpublic MongoPersistentEntity<?> getPropertyEntity()
QueryMapper.FieldMongoPersistentEntity that field is conatined in.
getPropertyEntity in class QueryMapper.Fieldpublic boolean isAssociation()
QueryMapper.Field
isAssociation in class QueryMapper.Fieldpublic String getMappedKey()
QueryMapper.Field
getMappedKey in class QueryMapper.Fieldprotected Converter<MongoPersistentProperty,String> getPropertyConverter()
Converter to be used to created the mapped key. Default implementation will use
MongoPersistentProperty.PropertyToFieldNameConverter.
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||