public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>> extends Object implements PersistentProperty<P>
PersistentProperty.isIdProperty, isVersionProperty| Constructor and Description |
|---|
AbstractPersistentProperty(Property property,
PersistentEntity<?,P> owner,
SimpleTypeHolder simpleTypeHolder) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Association<P> |
createAssociation() |
boolean |
equals(Object obj) |
Class<?> |
getActualType()
Returns the actual type of the property.
|
Association<P> |
getAssociation() |
Class<?> |
getComponentType()
Returns the component type of the type if it is a
Collection. |
Class<?> |
getMapValueType()
Returns the type of the values if the property is a
Map. |
String |
getName()
The name of the property
|
Iterable<? extends TypeInformation<?>> |
getPersistentEntityType()
Deprecated.
|
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()
Returns the
TypeInformation of the property. |
int |
hashCode() |
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 |
isEntity()
Returns whether the type of the
PersistentProperty is actually to be regarded as PersistentEntity
in turn. |
boolean |
isMap()
Returns whether the property is a
Map. |
boolean |
isTransient()
Returns whether the property is transient.
|
boolean |
isWritable()
Returns whether the current property is writable, i.e. if the value held for it shall be written to the data store.
|
String |
toString() |
boolean |
usePropertyAccess()
Returns whether property access shall be used for reading the property value.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAnnotation, findPropertyOrOwnerAnnotation, getField, getGetter, getOwner, getPersistentEntityTypes, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getSetter, isAnnotationPresent, isIdProperty, isVersionPropertypublic AbstractPersistentProperty(Property property, PersistentEntity<?,P> owner, SimpleTypeHolder simpleTypeHolder)
protected abstract Association<P> createAssociation()
public String getName()
PersistentPropertygetName in interface PersistentProperty<P extends PersistentProperty<P>>public Class<?> getType()
PersistentPropertygetType in interface PersistentProperty<P extends PersistentProperty<P>>public Class<?> getRawType()
PersistentPropertygetRawType in interface PersistentProperty<P extends PersistentProperty<P>>public TypeInformation<?> getTypeInformation()
PersistentPropertyTypeInformation of the property.getTypeInformation in interface PersistentProperty<P extends PersistentProperty<P>>@Deprecated public Iterable<? extends TypeInformation<?>> getPersistentEntityType()
PersistentPropertyTypeInformation 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.getPersistentEntityType in interface PersistentProperty<P extends PersistentProperty<P>>@Nullable public String getSpelExpression()
getSpelExpression in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isTransient()
PersistentPropertyisTransient in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isWritable()
PersistentPropertyisWritable in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isAssociation()
PersistentPropertyAssociation.isAssociation in interface PersistentProperty<P extends PersistentProperty<P>>@Nullable public Association<P> getAssociation()
getAssociation in interface PersistentProperty<P extends PersistentProperty<P>>Association.public boolean isCollectionLike()
PersistentPropertyCollection, Iterable or an array.isCollectionLike in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isMap()
PersistentPropertyMap.isMap in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isArray()
PersistentPropertyisArray in interface PersistentProperty<P extends PersistentProperty<P>>public boolean isEntity()
PersistentPropertyPersistentProperty is actually to be regarded as PersistentEntity
in turn.isEntity in interface PersistentProperty<P extends PersistentProperty<P>>PersistentEntity.@Nullable 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.@Nullable public Class<?> getMapValueType()
PersistentPropertyMap.getMapValueType in interface PersistentProperty<P extends PersistentProperty<P>>Mappublic Class<?> getActualType()
PersistentPropertygetActualType in interface PersistentProperty<P extends PersistentProperty<P>>public boolean usePropertyAccess()
PersistentPropertyusePropertyAccess in interface PersistentProperty<P extends PersistentProperty<P>>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.