org.springframework.data.document.mongodb.mapping
Class SimpleMongoMappingContext.SimplePersistentProperty

java.lang.Object
  extended by 
      extended by org.springframework.data.document.mongodb.mapping.SimpleMongoMappingContext.SimplePersistentProperty
All Implemented Interfaces:
MongoPersistentProperty
Enclosing class:
SimpleMongoMappingContext

static class SimpleMongoMappingContext.SimplePersistentProperty
extends
implements MongoPersistentProperty


Field Summary
private static java.util.List<java.lang.String> ID_FIELD_NAMES
           
 
Constructor Summary
SimpleMongoMappingContext.SimplePersistentProperty(java.lang.reflect.Field field, java.beans.PropertyDescriptor propertyDescriptor, MongoPersistentEntity<?> owner)
          Creates a new SimpleMongoMappingContext.SimplePersistentProperty.
 
Method Summary
protected   createAssociation()
           
 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.
 boolean isIdProperty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_FIELD_NAMES

private static final java.util.List<java.lang.String> ID_FIELD_NAMES
Constructor Detail

SimpleMongoMappingContext.SimplePersistentProperty

public SimpleMongoMappingContext.SimplePersistentProperty(java.lang.reflect.Field field,
                                                          java.beans.PropertyDescriptor propertyDescriptor,
                                                          MongoPersistentEntity<?> owner)
Creates a new SimpleMongoMappingContext.SimplePersistentProperty.

Parameters:
field -
propertyDescriptor -
information -
Method Detail

isIdProperty

public boolean isIdProperty()

getFieldName

public java.lang.String getFieldName()
Description copied from interface: MongoPersistentProperty
Returns the name of the field a property is persisted to.

Specified by:
getFieldName in interface MongoPersistentProperty
Returns:

createAssociation

protected  createAssociation()

isDbReference

public boolean isDbReference()
Description copied from interface: MongoPersistentProperty
Returns whether the propert is a com.mongodb.DBRef. If this returns true you can expect MongoPersistentProperty.getDBRef() to return an non-null value.

Specified by:
isDbReference in interface MongoPersistentProperty
Returns:

getDBRef

public DBRef getDBRef()
Description copied from interface: MongoPersistentProperty
Returns the DBRef if the property is a reference.

Specified by:
getDBRef in interface MongoPersistentProperty
Returns:
See Also:
MongoPersistentProperty.isDbReference()