public interface MongoPersistentProperty extends PersistentProperty<MongoPersistentProperty>
PersistentProperty
extension.Type | Property and Description |
---|---|
boolean |
isExplicitId
Returns whether the property is explicitly marked as an identifier property of the owning
PersistentEntity . |
isIdProperty, isVersionProperty
Modifier and Type | Interface and Description |
---|---|
static class |
MongoPersistentProperty.PropertyToFieldNameConverter
Simple
Converter implementation to transform a MongoPersistentProperty into its field name. |
Modifier and Type | Method and Description |
---|---|
DBRef |
getDBRef()
Returns the
DBRef if the property is a reference. |
String |
getFieldName()
Returns the name of the field a property is persisted to.
|
int |
getFieldOrder()
Returns the order of the field if defined.
|
boolean |
isDbReference()
Returns whether the propert is a
DBRef . |
boolean |
isExplicitIdProperty()
Returns whether the property is explicitly marked as an identifier property of the owning
PersistentEntity . |
boolean |
usePropertyAccess()
Returns whether property access shall be used for reading the property value.
|
findAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, isVersionProperty, shallBePersisted
PersistentEntity
.
A property is an explicit id property if it is annotated with @see Id
.String getFieldName()
int getFieldOrder()
boolean isDbReference()
DBRef
. If this returns true you can expect
getDBRef()
to return an non-null value.boolean isExplicitIdProperty()
PersistentEntity
.
A property is an explicit id property if it is annotated with @see Id
.DBRef getDBRef()
DBRef
if the property is a reference.isDbReference()
boolean usePropertyAccess()
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.