public interface PersistentProperty<P extends PersistentProperty<P>>
Type | Property and Description |
---|---|
boolean |
isId
Returns whether the property is a potential identifier property of the owning
PersistentEntity . |
boolean |
isVersion
Returns whether the current property is a potential version property of the owning
PersistentEntity . |
Modifier and Type | Method and Description |
---|---|
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 . |
Field |
getField() |
Method |
getGetter()
Returns the getter method to access the property value if available.
|
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 . |
Class<?> |
getRawType()
Returns the raw type as it's pulled from from the reflected property.
|
Method |
getSetter()
Returns the setter method to set a property value.
|
String |
getSpelExpression() |
Class<?> |
getType()
The type of the property
|
TypeInformation<?> |
getTypeInformation()
Returns the
TypeInformation of the property. |
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 |
isIdProperty()
Returns whether the property is a potential identifier property of the owning
PersistentEntity . |
boolean |
isMap()
Returns whether the property is a
Map . |
boolean |
isTransient()
Returns whether the property is transient.
|
boolean |
isVersionProperty()
Returns whether the current property is a potential version property of the owning
PersistentEntity . |
boolean |
shallBePersisted() |
PersistentEntity
.
This method is mainly used by PersistentEntity
implementation to discover id property candidates on
PersistentEntity
creation you should rather call PersistentEntity.isIdProperty(PersistentProperty)
to determine whether the current property is the id property of that PersistentEntity
under consideration.PersistentEntity
. This method is mainly used by PersistentEntity
implementation to discover version
property candidates on PersistentEntity
creation you should rather call
PersistentEntity.isVersionProperty(PersistentProperty)
to determine whether the current property is the
version property of that PersistentEntity
under consideration.PersistentEntity<?,P> getOwner()
String getName()
Class<?> getType()
TypeInformation<?> getTypeInformation()
TypeInformation
of the property.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.Method getGetter()
Method getSetter()
Field getField()
String getSpelExpression()
Association<P> getAssociation()
boolean isEntity()
PersistentProperty
is actually to be regarded as PersistentEntity
in turn.boolean isIdProperty()
PersistentEntity
.
This method is mainly used by PersistentEntity
implementation to discover id property candidates on
PersistentEntity
creation you should rather call PersistentEntity.isIdProperty(PersistentProperty)
to determine whether the current property is the id property of that PersistentEntity
under consideration.boolean isVersionProperty()
PersistentEntity
. This method is mainly used by PersistentEntity
implementation to discover version
property candidates on PersistentEntity
creation you should rather call
PersistentEntity.isVersionProperty(PersistentProperty)
to determine whether the current property is the
version property of that PersistentEntity
under consideration.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
Class<?> getActualType()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.