|
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
protected static class QueryMapper.Field
Value object to represent a field and its meta-information.
| Field Summary | |
|---|---|
protected String |
name
|
| Constructor Summary | |
|---|---|
QueryMapper.Field(String name)
Creates a new DocumentField without meta-information but the given name. |
|
| Method Summary | |
|---|---|
boolean |
containsAssociation()
Returns whether the field references an association in case it refers to a nested field. |
Association<MongoPersistentProperty> |
getAssociation()
|
String |
getMappedKey()
Returns the key to be used in the mapped document eventually. |
MongoPersistentProperty |
getProperty()
Returns the underlying MongoPersistentProperty backing the field. |
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.Field |
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 |
| Field Detail |
|---|
protected final String name
| Constructor Detail |
|---|
public QueryMapper.Field(String name)
DocumentField without meta-information but the given name.
name - must not be null or empty.| Method Detail |
|---|
public QueryMapper.Field with(String name)
DocumentField with the given name.
name - must not be null or empty.
public boolean isIdField()
public MongoPersistentProperty getProperty()
MongoPersistentProperty backing 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.
public MongoPersistentEntity<?> getPropertyEntity()
MongoPersistentEntity that field is conatined in.
public boolean isAssociation()
public String getMappedKey()
public boolean containsAssociation()
public Association<MongoPersistentProperty> getAssociation()
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||