public class CachingMongoPersistentProperty extends BasicMongoPersistentProperty
MongoPersistentProperty.PropertyToFieldNameConverter| Constructor and Description |
|---|
CachingMongoPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
CachingMongoPersistentProperty. |
| Modifier and Type | Method and Description |
|---|---|
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
Document. |
Class<?> |
getFieldType()
Returns the
Java FieldType of the field a property is persisted to. |
boolean |
isAssociation() |
boolean |
isDbReference()
Returns whether the property is a
DBRef. |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name.
|
boolean |
isTransient() |
boolean |
usePropertyAccess()
Returns whether property access shall be used for reading the property value.
|
createAssociation, getFieldOrder, hasExplicitFieldName, isExplicitIdProperty, isExplicitLanguageProperty, isLanguageProperty, isTextScorePropertyfindAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isVersionProperty, isWritable, toStringequals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waithasExplicitWriteTarget, isUnwrappedfindAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isCollectionLike, isEntity, isImmutable, isMap, isVersionProperty, isWritablepublic CachingMongoPersistentProperty(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, @Nullable FieldNamingStrategy fieldNamingStrategy)
CachingMongoPersistentProperty.property - must not be null.owner - must not be null.simpleTypeHolder - must not be null.fieldNamingStrategy - can be null.public boolean isIdProperty()
BasicMongoPersistentPropertyisIdProperty in interface PersistentProperty<MongoPersistentProperty>isIdProperty in class BasicMongoPersistentPropertyBasicMongoPersistentProperty.SUPPORTED_ID_PROPERTY_NAMES,
BasicMongoPersistentProperty.SUPPORTED_ID_TYPESpublic boolean isAssociation()
isAssociation in interface PersistentProperty<MongoPersistentProperty>isAssociation in class AnnotationBasedPersistentProperty<MongoPersistentProperty>public String getFieldName()
BasicMongoPersistentPropertyDocument.getFieldName in interface MongoPersistentPropertygetFieldName in class BasicMongoPersistentPropertypublic Class<?> getFieldType()
MongoPersistentPropertyJava FieldType of the field a property is persisted to.getFieldType in interface MongoPersistentPropertygetFieldType in class BasicMongoPersistentPropertyFieldTypepublic boolean usePropertyAccess()
MongoPersistentPropertyusePropertyAccess in interface PersistentProperty<MongoPersistentProperty>usePropertyAccess in interface MongoPersistentPropertyusePropertyAccess in class AnnotationBasedPersistentProperty<MongoPersistentProperty>public boolean isTransient()
isTransient in interface PersistentProperty<MongoPersistentProperty>isTransient in class AnnotationBasedPersistentProperty<MongoPersistentProperty>public boolean isDbReference()
MongoPersistentPropertyDBRef. If this returns true you can expect
MongoPersistentProperty.getDBRef() to return an non-null value.isDbReference in interface MongoPersistentPropertyisDbReference in class BasicMongoPersistentPropertypublic DBRef getDBRef()
MongoPersistentPropertyDBRef if the property is a reference.getDBRef in interface MongoPersistentPropertygetDBRef in class BasicMongoPersistentPropertyMongoPersistentProperty.isDbReference()Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.