|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mapping.BasicPersistentProperty
public class BasicPersistentProperty
Simple impementation of PersistentProperty
.
Field Summary | |
---|---|
protected Association |
association
|
protected Field |
field
|
protected TypeInformation |
information
|
protected boolean |
isTransient
|
protected String |
name
|
protected PersistentEntity<?> |
owner
|
protected PropertyDescriptor |
propertyDescriptor
|
protected Value |
value
|
Constructor Summary | |
---|---|
BasicPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
TypeInformation information)
|
Method Summary | |
---|---|
Association |
getAssociation()
|
Class<?> |
getComponentType()
Returns the component type of the type if it is a Collection . |
Field |
getField()
|
Class<?> |
getMapValueType()
Returns the type of the values if the property is a Map . |
String |
getName()
The name of the property |
Object |
getOwner()
|
PropertyDescriptor |
getPropertyDescriptor()
|
Class<?> |
getType()
The type of the property |
TypeInformation |
getTypeInformation()
|
Value |
getValueAnnotation()
|
boolean |
isArray()
|
boolean |
isAssociation()
|
boolean |
isCollection()
|
boolean |
isComplexType()
|
boolean |
isEntity()
Returns whether the property has to be regarded as entity which means its type will be also be considered to be a PersistentEntity . |
boolean |
isIdProperty()
|
boolean |
isMap()
|
boolean |
isTransient()
|
void |
setAssociation(Association association)
|
void |
setOwner(Object owner)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String name
protected final PropertyDescriptor propertyDescriptor
protected final TypeInformation information
protected final Field field
protected Association association
protected Value value
protected boolean isTransient
protected PersistentEntity<?> owner
Constructor Detail |
---|
public BasicPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, TypeInformation information)
Method Detail |
---|
public Object getOwner()
getOwner
in interface PersistentProperty
public void setOwner(Object owner)
public String getName()
PersistentProperty
getName
in interface PersistentProperty
public Class<?> getType()
PersistentProperty
getType
in interface PersistentProperty
public TypeInformation getTypeInformation()
getTypeInformation
in interface PersistentProperty
public PropertyDescriptor getPropertyDescriptor()
getPropertyDescriptor
in interface PersistentProperty
public Field getField()
getField
in interface PersistentProperty
public Value getValueAnnotation()
getValueAnnotation
in interface PersistentProperty
public boolean isTransient()
isTransient
in interface PersistentProperty
public boolean isAssociation()
isAssociation
in interface PersistentProperty
public Association getAssociation()
getAssociation
in interface PersistentProperty
public void setAssociation(Association association)
public boolean isCollection()
isCollection
in interface PersistentProperty
public boolean isMap()
isMap
in interface PersistentProperty
public boolean isArray()
isArray
in interface PersistentProperty
public boolean isComplexType()
isComplexType
in interface PersistentProperty
public boolean isEntity()
PersistentProperty
PersistentEntity
.
isEntity
in interface PersistentProperty
public Class<?> getComponentType()
PersistentProperty
Collection
. Will return the type of the key if the
property is a Map
.
getComponentType
in interface PersistentProperty
Collection
nor Map
.public Class<?> getMapValueType()
PersistentProperty
Map
.
getMapValueType
in interface PersistentProperty
Map
public boolean isIdProperty()
isIdProperty
in interface PersistentProperty
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |