Spring Data Document

org.springframework.data.document.mongodb.mapping
Interface MongoPersistentProperty

All Superinterfaces:
org.springframework.data.mapping.model.PersistentProperty<MongoPersistentProperty>
All Known Implementing Classes:
BasicMongoPersistentProperty

public interface MongoPersistentProperty
extends org.springframework.data.mapping.model.PersistentProperty<MongoPersistentProperty>

Mongo specific PersistentProperty implementation.

Author:
Oliver Gierke

Method Summary
 DBRef getDBRef()
          Returns the DBRef if the property is a reference.
 String getFieldName()
          Returns the name of the field a property is persisted to.
 boolean isDbReference()
          Returns whether the propert is a DBRef.
 
Methods inherited from interface org.springframework.data.mapping.model.PersistentProperty
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getRawType, getSpelExpression, getType, getTypeInformation, isArray, isAssociation, isCollection, isComplexType, isEntity, isIdProperty, isMap, isTransient
 

Method Detail

getFieldName

String getFieldName()
Returns the name of the field a property is persisted to.

Returns:

isDbReference

boolean isDbReference()
Returns whether the propert is a DBRef. If this returns true you can expect getDBRef() to return an non-null value.

Returns:

getDBRef

DBRef getDBRef()
Returns the DBRef if the property is a reference.

Returns:
See Also:
isDbReference()

Spring Data Document

Copyright © 2011. All Rights Reserved.