|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentProperty<P extends PersistentProperty<P>>
| Method Summary | |
|---|---|
Association<P> |
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 |
PersistentEntity<?,P> |
getOwner()
|
Iterable<? extends TypeInformation<?>> |
getPersistentEntityType()
Returns the TypeInformation if the property references a PersistentEntity. |
PropertyDescriptor |
getPropertyDescriptor()
Returns the PropertyDescriptor backing the PersistentProperty. |
Class<?> |
getRawType()
Returns the raw type as it's pulled from from the reflected property. |
String |
getSpelExpression()
|
Class<?> |
getType()
The type of the property |
TypeInformation<?> |
getTypeInformation()
|
boolean |
isArray()
Returns whether the property is an array. |
boolean |
isAssociation()
Returns whether the property is an Association. |
boolean |
isCollectionLike()
Returns whether the property is a Collection, Iterable or an array. |
boolean |
isIdProperty()
Returns whether the property is the ID property of the owning PersistentEntity. |
boolean |
isMap()
Returns whether the property is a Map. |
boolean |
isTransient()
Returns whether the property is transient. |
boolean |
shallBePersisted()
|
| Method Detail |
|---|
PersistentEntity<?,P> getOwner()
String getName()
Class<?> getType()
TypeInformation<?> getTypeInformation()
Iterable<? extends TypeInformation<?>> getPersistentEntityType()
TypeInformation if the property references a PersistentEntity. Will return
null in case it refers to a simple type. Will return Collection's component type or the
Map's value type transparently.
PropertyDescriptor getPropertyDescriptor()
PropertyDescriptor backing the PersistentProperty.
Field getField()
String getSpelExpression()
Association<P> getAssociation()
boolean isIdProperty()
PersistentEntity.
boolean isCollectionLike()
Collection, Iterable or an array.
boolean isMap()
Map.
boolean isArray()
boolean isTransient()
boolean shallBePersisted()
boolean isAssociation()
Association.
Class<?> getComponentType()
Collection. Will return the type of the key if
the property is a Map.
Collection nor
Map.Class<?> getRawType()
Class<?> getMapValueType()
Map.
Map
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||