|
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.model.AbstractPersistentProperty<P> org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<P>
public abstract class AnnotationBasedPersistentProperty<P extends PersistentProperty<P>>
Special PersistentProperty
that takes annotations at a property into account.
Field Summary |
---|
Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty |
---|
association, field, information, name, owner, propertyDescriptor, rawType |
Constructor Summary | |
---|---|
AnnotationBasedPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
PersistentEntity<?,P> owner,
SimpleTypeHolder simpleTypeHolder)
Creates a new AnnotationBasedPersistentProperty . |
Method Summary | |
---|---|
String |
getSpelExpression()
Inspects a potentially available Value annotation at the property and returns the String value of
it. |
boolean |
isAssociation()
Considers the property an Association if it is annotated with Reference . |
boolean |
isIdProperty()
Regards the property as ID if there is an Id annotation found on it. |
boolean |
isTransient()
Considers plain transient fields, fields annotated with Transient , Value or Autowired as
transien. |
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty |
---|
createAssociation, getAssociation, getComponentType, getField, getMapValueType, getName, getOwner, getPropertyDescriptor, getRawType, getType, getTypeInformation, isArray, isCollection, isComplexType, isEntity, isMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationBasedPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, PersistentEntity<?,P> owner, SimpleTypeHolder simpleTypeHolder)
AnnotationBasedPersistentProperty
.
field
- propertyDescriptor
- owner
- Method Detail |
---|
public String getSpelExpression()
Value
annotation at the property and returns the String
value of
it.
getSpelExpression
in interface PersistentProperty<P extends PersistentProperty<P>>
getSpelExpression
in class AbstractPersistentProperty<P extends PersistentProperty<P>>
AbstractPersistentProperty.getSpelExpression()
public boolean isTransient()
Transient
, Value
or Autowired
as
transien.
isTransient
in interface PersistentProperty<P extends PersistentProperty<P>>
isTransient
in class AbstractPersistentProperty<P extends PersistentProperty<P>>
org.springframework.data.mapping.BasicPersistentProperty#isTransient()
public boolean isIdProperty()
Id
annotation found on it.
public boolean isAssociation()
Association
if it is annotated with Reference
.
isAssociation
in interface PersistentProperty<P extends PersistentProperty<P>>
isAssociation
in class AbstractPersistentProperty<P extends PersistentProperty<P>>
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |