|
|||||||||
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 | |
---|---|
private java.beans.PropertyDescriptor |
delegate
|
(package private) static java.lang.String |
ID_KEY
|
private static java.lang.String |
ID_PROPERTY
|
private java.lang.Class<?> |
owningType
|
static java.util.Collection<java.lang.Class<?>> |
SUPPORTED_ID_CLASSES
|
Constructor Summary | |
---|---|
MongoPropertyDescriptors.MongoPropertyDescriptor(java.beans.PropertyDescriptor descriptor,
java.lang.Class<?> owningType)
Creates a new MongoPropertyDescriptors.MongoPropertyDescriptor for the given PropertyDescriptor . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKeyToMap()
Returns the key that shall be used for mapping. |
java.lang.String |
getName()
Returns the name of the property. |
java.lang.Class<?> |
getPropertyType()
Returns the plain property type. |
java.lang.reflect.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 java.util.Collection<java.lang.Class<?>> SUPPORTED_ID_CLASSES
private static final java.lang.String ID_PROPERTY
static final java.lang.String ID_KEY
private final java.beans.PropertyDescriptor delegate
private final java.lang.Class<?> owningType
Constructor Detail |
---|
public MongoPropertyDescriptors.MongoPropertyDescriptor(java.beans.PropertyDescriptor descriptor, java.lang.Class<?> owningType)
MongoPropertyDescriptors.MongoPropertyDescriptor
for the given PropertyDescriptor
.
descriptor
- owningType
- Method Detail |
---|
public boolean isIdProperty()
public boolean isOfIdType()
String
,
ObjectId
and BigInteger
.
public java.lang.String getKeyToMap()
public java.lang.String getName()
public boolean isMappable()
public java.lang.Class<?> getPropertyType()
public java.lang.reflect.Type getTypeToSet()
public boolean isMap()
Map
.
public boolean isCollection()
public boolean isEnum()
Enum
.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |