|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mapping.AbstractPersistentProperty<P> org.springframework.data.mapping.AnnotationBasedPersistentProperty<MongoPersistentProperty> org.springframework.data.document.mongodb.mapping.BasicMongoPersistentProperty
public class BasicMongoPersistentProperty
Mongo specific PersistentProperty
implementation.
Field Summary |
---|
Fields inherited from class org.springframework.data.mapping.AbstractPersistentProperty |
---|
association, field, information, name, owner, propertyDescriptor, rawType |
Constructor Summary | |
---|---|
BasicMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner)
Creates a new BasicMongoPersistentProperty . |
Method Summary | |
---|---|
protected org.springframework.data.mapping.model.Association<MongoPersistentProperty> |
createAssociation()
|
DBRef |
getDBRef()
Returns the DBRef if the property is a reference. |
String |
getFieldName()
Returns the key to be used to store the value of the property inside a Mongo DBObject . |
boolean |
isAssociation()
|
boolean |
isDbReference()
Returns whether the propert is a DBRef . |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name. |
Methods inherited from class org.springframework.data.mapping.AnnotationBasedPersistentProperty |
---|
getSpelExpression, isTransient |
Methods inherited from class org.springframework.data.mapping.AbstractPersistentProperty |
---|
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getRawType, getType, getTypeInformation, isArray, isCollection, isComplexType, isEntity, isMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.mapping.model.PersistentProperty |
---|
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getRawType, getSpelExpression, getType, getTypeInformation, isArray, isCollection, isComplexType, isEntity, isMap, isTransient |
Constructor Detail |
---|
public BasicMongoPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, MongoPersistentEntity<?> owner)
BasicMongoPersistentProperty
.
field
- propertyDescriptor
- owner
- Method Detail |
---|
public boolean isAssociation()
isAssociation
in interface org.springframework.data.mapping.model.PersistentProperty<MongoPersistentProperty>
isAssociation
in class org.springframework.data.mapping.AnnotationBasedPersistentProperty<MongoPersistentProperty>
public boolean isIdProperty()
isIdProperty
in interface org.springframework.data.mapping.model.PersistentProperty<MongoPersistentProperty>
isIdProperty
in class org.springframework.data.mapping.AnnotationBasedPersistentProperty<MongoPersistentProperty>
SUPPORTED_ID_PROPERTY_NAMES
,
SUPPORTED_ID_TYPES
public String getFieldName()
DBObject
.
getFieldName
in interface MongoPersistentProperty
protected org.springframework.data.mapping.model.Association<MongoPersistentProperty> createAssociation()
createAssociation
in class org.springframework.data.mapping.AbstractPersistentProperty<MongoPersistentProperty>
public boolean isDbReference()
MongoPersistentProperty
DBRef
. If this returns true you can expect
MongoPersistentProperty.getDBRef()
to return an non-null value.
isDbReference
in interface MongoPersistentProperty
public DBRef getDBRef()
MongoPersistentProperty
DBRef
if the property is a reference.
getDBRef
in interface MongoPersistentProperty
MongoPersistentProperty.isDbReference()
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |