Spring Data Document

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

java.lang.Object
  extended by org.springframework.data.mapping.BasicPersistentProperty
      extended by org.springframework.data.document.mongodb.mapping.MongoPersistentProperty
All Implemented Interfaces:
org.springframework.data.mapping.model.PersistentProperty

public class MongoPersistentProperty
extends org.springframework.data.mapping.BasicPersistentProperty

Mongo specific PersistentProperty implementation.

Author:
Oliver Gierke

Field Summary
 
Fields inherited from class org.springframework.data.mapping.BasicPersistentProperty
association, field, information, isTransient, name, owner, propertyDescriptor, value
 
Constructor Summary
MongoPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, org.springframework.data.util.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 org.springframework.data.mapping.BasicPersistentProperty
getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getType, getTypeInformation, getValueAnnotation, isArray, isAssociation, isCollection, isComplexType, isEntity, isMap, isTransient, setAssociation, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoPersistentProperty

public MongoPersistentProperty(Field field,
                               PropertyDescriptor propertyDescriptor,
                               org.springframework.data.util.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.

Specified by:
isIdProperty in interface org.springframework.data.mapping.model.PersistentProperty
Overrides:
isIdProperty in class org.springframework.data.mapping.BasicPersistentProperty
See Also:
SUPPORTED_ID_PROPERTY_NAMES, SUPPORTED_ID_TYPES

Spring Data Document

Copyright © 2011. All Rights Reserved.