public class BasicMongoPersistentProperty extends AnnotationBasedPersistentProperty<MongoPersistentProperty> implements MongoPersistentProperty
PersistentProperty
implementation.Type | Property and Description |
---|---|
boolean |
isExplicitId
Gets the value of the property explicitIdProperty.
|
boolean |
isExplicitLanguage
Gets the value of the property explicitLanguageProperty.
|
boolean |
isId
Gets the value of the property idProperty.
|
boolean |
isLanguage
Gets the value of the property languageProperty.
|
boolean |
isTextScore
Gets the value of the property textScoreProperty.
|
isVersionProperty
isVersionProperty
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()
Gets the value of the property explicitIdProperty.
|
boolean |
isExplicitLanguageProperty()
Gets the value of the property explicitLanguageProperty.
|
boolean |
isIdProperty()
Gets the value of the property idProperty.
|
boolean |
isLanguageProperty()
Gets the value of the property languageProperty.
|
boolean |
isTextScoreProperty()
Gets the value of the property textScoreProperty.
|
findAnnotation, findPropertyOrOwnerAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
equals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getProperty, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
usePropertyAccess
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, isWritable
public boolean isIdProperty
isIdProperty
in interface PersistentProperty<MongoPersistentProperty>
isIdProperty
in class AnnotationBasedPersistentProperty<MongoPersistentProperty>
public boolean isExplicitIdProperty
isExplicitIdProperty
in interface MongoPersistentProperty
public boolean isLanguageProperty
isLanguageProperty
in interface MongoPersistentProperty
public boolean isExplicitLanguageProperty
isExplicitLanguageProperty
in interface MongoPersistentProperty
public boolean isTextScoreProperty
isTextScoreProperty
in interface MongoPersistentProperty
public 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>
public boolean isExplicitIdProperty()
isExplicitIdProperty
in interface MongoPersistentProperty
public String getFieldName()
Document
.getFieldName
in interface MongoPersistentProperty
protected boolean hasExplicitFieldName()
Field
having non blank
Field.value()
present.public int getFieldOrder()
MongoPersistentProperty
getFieldOrder
in interface MongoPersistentProperty
protected Association<MongoPersistentProperty> createAssociation()
createAssociation
in class AbstractPersistentProperty<MongoPersistentProperty>
public boolean isDbReference()
MongoPersistentProperty
DBRef
. If this returns true you can expect
MongoPersistentProperty.getDBRef()
to return an non-null value.isDbReference
in interface MongoPersistentProperty
@Nullable public DBRef getDBRef()
MongoPersistentProperty
DBRef
if the property is a reference.getDBRef
in interface MongoPersistentProperty
MongoPersistentProperty.isDbReference()
public boolean isLanguageProperty()
isLanguageProperty
in interface MongoPersistentProperty
public boolean isExplicitLanguageProperty()
isExplicitLanguageProperty
in interface MongoPersistentProperty
public boolean isTextScoreProperty()
isTextScoreProperty
in interface MongoPersistentProperty
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.