|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.document.mongodb.MongoPropertyDescriptors.MongoPropertyDescriptor
public static class MongoPropertyDescriptors.MongoPropertyDescriptor
Simple value object to have a more suitable abstraction for MongoDB specific property handling.
Field Summary | |
---|---|
static Collection<Class<?>> |
SUPPORTED_ID_CLASSES
|
Constructor Summary | |
---|---|
MongoPropertyDescriptors.MongoPropertyDescriptor(PropertyDescriptor descriptor,
Class<?> owningType)
Creates a new MongoPropertyDescriptors.MongoPropertyDescriptor for the given PropertyDescriptor . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getKeyToMap()
Returns the key that shall be used for mapping. |
String |
getName()
Returns the name of the property. |
Class<?> |
getPropertyType()
Returns the plain property type. |
Type |
getTypeToSet()
Returns the type type to be set. |
int |
hashCode()
|
boolean |
isCollection()
Returns whether the descriptor is for a collection. |
boolean |
isEnum()
Returns whether the descriptor is for an Enum . |
boolean |
isIdProperty()
Returns whether the property is the id-property. |
boolean |
isMap()
Returns whther we describe a Map . |
boolean |
isMappable()
Returns whether the underlying property is actually mappable. |
boolean |
isOfIdType()
Returns whether the property is of one of the supported id types. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Collection<Class<?>> SUPPORTED_ID_CLASSES
Constructor Detail |
---|
public MongoPropertyDescriptors.MongoPropertyDescriptor(PropertyDescriptor descriptor, Class<?> owningType)
MongoPropertyDescriptors.MongoPropertyDescriptor
for the given PropertyDescriptor
.
descriptor
- owningType
- Method Detail |
---|
public boolean isIdProperty()
public boolean isOfIdType()
String
,
ObjectId
and BigInteger
.
public String getKeyToMap()
public String getName()
public boolean isMappable()
public Class<?> getPropertyType()
public Type getTypeToSet()
public boolean isMap()
Map
.
public boolean isCollection()
public boolean isEnum()
Enum
.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |