public class CachingMongoPersistentProperty extends BasicMongoPersistentProperty
MongoPersistentProperty.PropertyToFieldNameConverter
Constructor and Description |
---|
CachingMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Creates a new
CachingMongoPersistentProperty . |
Modifier and Type | Method and Description |
---|---|
String |
getFieldName()
Returns the key to be used to store the value of the property inside a Mongo
DBObject . |
boolean |
isAssociation() |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name.
|
createAssociation, getDBRef, getFieldOrder, isDbReference
getSpelExpression, isTransient
equals, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap, shallBePersisted
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isArray, isCollectionLike, isEntity, isMap, isTransient, shallBePersisted
public CachingMongoPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
CachingMongoPersistentProperty
.field
- propertyDescriptor
- owner
- simpleTypeHolder
- public boolean isIdProperty()
BasicMongoPersistentProperty
isIdProperty
in interface org.springframework.data.mapping.PersistentProperty<MongoPersistentProperty>
isIdProperty
in class BasicMongoPersistentProperty
BasicMongoPersistentProperty.SUPPORTED_ID_PROPERTY_NAMES
,
BasicMongoPersistentProperty.SUPPORTED_ID_TYPES
public boolean isAssociation()
isAssociation
in interface org.springframework.data.mapping.PersistentProperty<MongoPersistentProperty>
isAssociation
in class BasicMongoPersistentProperty
public String getFieldName()
BasicMongoPersistentProperty
DBObject
.getFieldName
in interface MongoPersistentProperty
getFieldName
in class BasicMongoPersistentProperty
Copyright © 2012. All Rights Reserved.