public class BasicMongoPersistentProperty extends AnnotationBasedPersistentProperty<MongoPersistentProperty> implements MongoPersistentProperty
PersistentProperty implementation.MongoPersistentProperty.PropertyToFieldNameConverter| Constructor and Description |
|---|
BasicMongoPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Creates a new
BasicMongoPersistentProperty. |
| Modifier and Type | Method and Description |
|---|---|
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
Document. |
int |
getFieldOrder()
Returns the order of the field if defined.
|
protected boolean |
hasExplicitFieldName() |
boolean |
isDbReference()
Returns whether the property is a
DBRef. |
boolean |
isExplicitIdProperty()
Returns whether the property is explicitly marked as an identifier property of the owning
PersistentEntity. |
boolean |
isExplicitLanguageProperty()
Returns true when property being annotated with
Language. |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name.
|
boolean |
isLanguageProperty()
Returns true whether the property indicates the documents language either by having a
MongoPersistentProperty.getFieldName() equal
to language or being annotated with Language. |
boolean |
isTextScoreProperty()
Returns whether the property holds the documents score calculated by text search.
|
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, 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, waitusePropertyAccessfindAnnotation, findPropertyOrOwnerAnnotation, 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, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isTransient, isVersionProperty, isWritablepublic BasicMongoPersistentProperty(Property property, MongoPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, @Nullable FieldNamingStrategy fieldNamingStrategy)
BasicMongoPersistentProperty.field - propertyDescriptor - owner - simpleTypeHolder - fieldNamingStrategy - public boolean isIdProperty()
isIdProperty in interface PersistentProperty<MongoPersistentProperty>isIdProperty in class AnnotationBasedPersistentProperty<MongoPersistentProperty>SUPPORTED_ID_PROPERTY_NAMES,
SUPPORTED_ID_TYPESpublic boolean isExplicitIdProperty()
MongoPersistentPropertyPersistentEntity.
A property is an explicit id property if it is annotated with @see Id.isExplicitIdProperty in interface MongoPersistentPropertypublic String getFieldName()
Document.getFieldName in interface MongoPersistentPropertyprotected boolean hasExplicitFieldName()
Field having non blank
Field.value() present.public int getFieldOrder()
MongoPersistentPropertygetFieldOrder 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 MongoPersistentProperty@Nullable public DBRef getDBRef()
MongoPersistentPropertyDBRef if the property is a reference.getDBRef in interface MongoPersistentPropertyMongoPersistentProperty.isDbReference()public boolean isLanguageProperty()
MongoPersistentPropertyMongoPersistentProperty.getFieldName() equal
to language or being annotated with Language.isLanguageProperty in interface MongoPersistentPropertypublic boolean isExplicitLanguageProperty()
MongoPersistentPropertyLanguage.isExplicitLanguageProperty in interface MongoPersistentPropertypublic boolean isTextScoreProperty()
MongoPersistentPropertyTextScore.isTextScoreProperty in interface MongoPersistentPropertyCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.