public interface AttributeAccessor extends AnnotatedElement
AccessStyles.| Modifier and Type | Method and Description |
|---|---|
AccessStyle |
getAccessStyle()
Describes how this attribute accesses the values below.
|
Class<?> |
getDeclaringClass()
The class that declared this attribute.
|
AnnotatedElement |
getElement()
The actual field or method.
|
Type |
getGenericType()
The generic type of the accessed attribute.
|
Class<?> |
getImplementationClass()
The class that is the type of every object that contains this attribute.
|
String |
getName()
The name of the accessed attribute.
|
Class<?> |
getType()
The type of the accessed attribute.
|
<E,T> T |
getValue(E entity)
Resolves the current value for the attribute on the given entity.
|
boolean |
isPersistent()
Indicates that this attribute is written to the database.
|
<E,T> void |
setValue(E entity,
T value)
Sets a new value for the attribute on the given entity.
|
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresentAccessStyle getAccessStyle()
Class<?> getDeclaringClass()
AnnotatedElement getElement()
Type getGenericType()
Class<?> getImplementationClass()
the class that declared this attribute or a sub class. Used to resolve any
generic type parameter in getType().String getName()
decapitalized if necessary)Class<?> getType()
getImplementationClass().<E,T> T getValue(E entity)
entity - the entity to inspectnull if entity is nullboolean isPersistent()
true if the represented attribute is neither static, nor transient, nor generated.<E,T> void setValue(E entity,
T value)
entity - the entity to inspectvalue - the new valueCopyright © 2022 fastnate.org. All rights reserved.