|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MongoPersistentProperty>
org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty
public class BasicMongoPersistentProperty
MongoDB specific MongoPersistentProperty implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.mapping.MongoPersistentProperty |
|---|
MongoPersistentProperty.PropertyToFieldNameConverter |
| Field Summary |
|---|
| Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty |
|---|
association, field, information, name, owner, propertyDescriptor, rawType |
| Constructor Summary | |
|---|---|
BasicMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
Creates a new BasicMongoPersistentProperty. |
|
| Method Summary | |
|---|---|
protected 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. |
int |
getFieldOrder()
Returns the order of the field if defined. |
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. |
boolean |
usePropertyAccess()
Returns whether property access shall be used for reading the property value. |
| Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty |
|---|
findAnnotation, getSpelExpression, isAnnotationPresent, isTransient, isVersionProperty |
| Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty |
|---|
equals, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap, shallBePersisted |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.mapping.PersistentProperty |
|---|
getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isArray, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, shallBePersisted |
| Constructor Detail |
|---|
public BasicMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
BasicMongoPersistentProperty.
field - propertyDescriptor - owner - simpleTypeHolder - | Method Detail |
|---|
public boolean isAssociation()
isAssociation in interface PersistentProperty<MongoPersistentProperty>isAssociation in class AnnotationBasedPersistentProperty<MongoPersistentProperty>public boolean isIdProperty()
isIdProperty in interface PersistentProperty<MongoPersistentProperty>isIdProperty in class AnnotationBasedPersistentProperty<MongoPersistentProperty>SUPPORTED_ID_PROPERTY_NAMES,
SUPPORTED_ID_TYPESpublic String getFieldName()
DBObject.
getFieldName in interface MongoPersistentPropertypublic int getFieldOrder()
MongoPersistentProperty
getFieldOrder in interface MongoPersistentPropertyprotected Association<MongoPersistentProperty> createAssociation()
createAssociation in class AbstractPersistentProperty<MongoPersistentProperty>public boolean isDbReference()
MongoPersistentPropertyDBRef. If this returns true you can expect
MongoPersistentProperty.getDBRef() to return an non-null value.
isDbReference in interface MongoPersistentPropertypublic DBRef getDBRef()
MongoPersistentPropertyDBRef if the property is a reference.
getDBRef in interface MongoPersistentPropertyMongoPersistentProperty.isDbReference()public boolean usePropertyAccess()
MongoPersistentProperty
usePropertyAccess in interface MongoPersistentProperty
|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||