|
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.model.AbstractPersistentProperty<P> org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MongoPersistentProperty> org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty org.springframework.data.mongodb.core.mapping.CachingMongoPersistentProperty
public class CachingMongoPersistentProperty
MongoPersistentProperty
caching access to isIdProperty()
and getFieldName()
.
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 | |
---|---|
CachingMongoPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
MongoPersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Creates a new CachingMongoPersistentProperty . |
Method Summary | |
---|---|
String |
getFieldName()
Returns the key to be used to store the value of the property inside a Mongo DBObject . |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name. |
Methods inherited from class org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty |
---|
createAssociation, getDBRef, getFieldOrder, isAssociation, isDbReference |
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty |
---|
getSpelExpression, isTransient |
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty |
---|
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPersistentEntityType, getPropertyDescriptor, getRawType, getType, getTypeInformation, isArray, isCollectionLike, isEntity, isMap, shallBePersisted |
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.PersistentProperty |
---|
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPersistentEntityType, getPropertyDescriptor, getRawType, getSpelExpression, getType, getTypeInformation, isArray, isCollectionLike, isMap, isTransient, shallBePersisted |
Constructor Detail |
---|
public CachingMongoPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
CachingMongoPersistentProperty
.
field
- propertyDescriptor
- owner
- simpleTypeHolder
- Method Detail |
---|
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 String getFieldName()
BasicMongoPersistentProperty
DBObject
.
getFieldName
in interface MongoPersistentProperty
getFieldName
in class BasicMongoPersistentProperty
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |