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

All Known Implementing Classes:
BasicMongoPersistentProperty, SimpleMongoMappingContext.SimplePersistentProperty

public interface MongoPersistentProperty

Mongo specific org.springframework.data.mapping.model.PersistentProperty implementation.

Author:
Oliver Gierke

Method Summary
 DBRef getDBRef()
          Returns the DBRef if the property is a reference.
 java.lang.String getFieldName()
          Returns the name of the field a property is persisted to.
 boolean isDbReference()
          Returns whether the propert is a com.mongodb.DBRef.
 

Method Detail

getFieldName

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

Returns:

isDbReference

boolean isDbReference()
Returns whether the propert is a com.mongodb.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()