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

java.lang.Object
  extended by BasicPersistentProperty
      extended by org.springframework.data.document.mongodb.mapping.MongoPersistentProperty

public class MongoPersistentProperty
extends BasicPersistentProperty

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

Author:
Oliver Gierke

Field Summary
private static java.util.Set<java.lang.String> SUPPORTED_ID_PROPERTY_NAMES
           
private static java.util.Set<java.lang.Class<?>> SUPPORTED_ID_TYPES
           
 
Constructor Summary
MongoPersistentProperty(java.lang.reflect.Field field, java.beans.PropertyDescriptor propertyDescriptor, TypeInformation owningTypeInformation)
          Creates a new MongoPersistentProperty.
 
Method Summary
 boolean isIdProperty()
          Also considers fields as id that are of supported id type and name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_ID_TYPES

private static final java.util.Set<java.lang.Class<?>> SUPPORTED_ID_TYPES

SUPPORTED_ID_PROPERTY_NAMES

private static final java.util.Set<java.lang.String> SUPPORTED_ID_PROPERTY_NAMES
Constructor Detail

MongoPersistentProperty

public MongoPersistentProperty(java.lang.reflect.Field field,
                               java.beans.PropertyDescriptor propertyDescriptor,
                               TypeInformation owningTypeInformation)
Creates a new MongoPersistentProperty.

Parameters:
field -
propertyDescriptor -
owningTypeInformation -
Method Detail

isIdProperty

public boolean isIdProperty()
Also considers fields as id that are of supported id type and name.

See Also:
SUPPORTED_ID_PROPERTY_NAMES, SUPPORTED_ID_TYPES