org.springframework.data.document.mongodb.mapping
Class SimpleMongoMappingContext.SimplePersistentProperty
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_FIELD_NAMES
private static final java.util.List<java.lang.String> ID_FIELD_NAMES
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
-
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()