org.springframework.data.mongodb.core.mapping
Class CachingMongoPersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MongoPersistentProperty>
org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty
org.springframework.data.mongodb.core.mapping.CachingMongoPersistentProperty
- All Implemented Interfaces:
- PersistentProperty<MongoPersistentProperty>, MongoPersistentProperty
public class CachingMongoPersistentProperty
- extends BasicMongoPersistentProperty
MongoPersistentProperty
caching access to isIdProperty()
and getFieldName()
.
- Author:
- Oliver Gierke
Method Summary |
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. |
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 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 |
CachingMongoPersistentProperty
public CachingMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder)
- Creates a new
CachingMongoPersistentProperty
.
- Parameters:
field
- propertyDescriptor
- owner
- simpleTypeHolder
-
isIdProperty
public boolean isIdProperty()
- Description copied from class:
BasicMongoPersistentProperty
- Also considers fields as id that are of supported id type and name.
- Specified by:
isIdProperty
in interface PersistentProperty<MongoPersistentProperty>
- Overrides:
isIdProperty
in class BasicMongoPersistentProperty
- See Also:
BasicMongoPersistentProperty.SUPPORTED_ID_PROPERTY_NAMES
,
BasicMongoPersistentProperty.SUPPORTED_ID_TYPES
isAssociation
public boolean isAssociation()
- Specified by:
isAssociation
in interface PersistentProperty<MongoPersistentProperty>
- Overrides:
isAssociation
in class BasicMongoPersistentProperty
getFieldName
public String getFieldName()
- Description copied from class:
BasicMongoPersistentProperty
- Returns the key to be used to store the value of the property inside a Mongo
DBObject
.
- Specified by:
getFieldName
in interface MongoPersistentProperty
- Overrides:
getFieldName
in class BasicMongoPersistentProperty
- Returns:
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.