|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mapping.model.AbstractPersistentProperty<P>
public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>>
Simple impementation of PersistentProperty.
| Field Summary | |
|---|---|
protected Association<P> |
association
|
protected Field |
field
|
protected TypeInformation<?> |
information
|
protected String |
name
|
protected PersistentEntity<?,P> |
owner
|
protected PropertyDescriptor |
propertyDescriptor
|
protected Class<?> |
rawType
|
| Constructor Summary | |
|---|---|
AbstractPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
PersistentEntity<?,P> owner,
SimpleTypeHolder simpleTypeHolder)
|
|
| Method Summary | |
|---|---|
protected abstract Association<P> |
createAssociation()
|
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()
|
PropertyDescriptor |
getPropertyDescriptor()
|
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()
|
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 |
isMap()
|
boolean |
isTransient()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.mapping.PersistentProperty |
|---|
isIdProperty |
| Field Detail |
|---|
protected final String name
protected final PropertyDescriptor propertyDescriptor
protected final TypeInformation<?> information
protected final Class<?> rawType
protected final Field field
protected final Association<P extends PersistentProperty<P>> association
protected final PersistentEntity<?,P extends PersistentProperty<P>> owner
| Constructor Detail |
|---|
public AbstractPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
PersistentEntity<?,P> owner,
SimpleTypeHolder simpleTypeHolder)
| Method Detail |
|---|
protected abstract Association<P> createAssociation()
public PersistentEntity<?,P> getOwner()
getOwner in interface PersistentProperty<P extends PersistentProperty<P>>public String getName()
PersistentProperty
getName in interface PersistentProperty<P extends PersistentProperty<P>>public Class<?> getType()
PersistentProperty
getType in interface PersistentProperty<P extends PersistentProperty<P>>public Class<?> getRawType()
PersistentProperty
getRawType in interface PersistentProperty<P extends PersistentProperty<P>>public TypeInformation<?> getTypeInformation()
getTypeInformation in interface PersistentProperty<P extends PersistentProperty<P>>public PropertyDescriptor getPropertyDescriptor()
getPropertyDescriptor in interface PersistentProperty<P extends PersistentProperty<P>>public Field getField()
getField in interface PersistentProperty<P extends PersistentProperty<P>>public String getSpelExpression()
getSpelExpression in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isTransient()
isTransient in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isAssociation()
isAssociation in interface PersistentProperty<P extends PersistentProperty<P>>public Association<P> getAssociation()
getAssociation in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isCollection()
isCollection in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isMap()
isMap in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isArray()
isArray in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isComplexType()
isComplexType in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isEntity()
PersistentPropertyPersistentEntity.
isEntity in interface PersistentProperty<P extends PersistentProperty<P>>public Class<?> getComponentType()
PersistentPropertyCollection. Will return the type of the key if the
property is a Map.
getComponentType in interface PersistentProperty<P extends PersistentProperty<P>>Collection nor Map.public Class<?> getMapValueType()
PersistentPropertyMap.
getMapValueType in interface PersistentProperty<P extends PersistentProperty<P>>Map
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||