public class EntityField extends Object
Constructor and Description |
---|
EntityField(Field field,
PropertyDescriptor propertyDescriptor)
构造方法
|
Modifier and Type | Method and Description |
---|---|
void |
copyFromPropertyDescriptor(EntityField other)
先创建field,然后可以通过该方法获取property等属性
|
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
获取指定的注解
|
Class<?> |
getJavaType()
获取javaType
|
String |
getName()
字段属性名
|
Object |
getValue(Object object)
反射获取值
|
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass)
是否有该注解
|
void |
setJavaType(Class<?> javaType)
设置javaType
|
public EntityField(Field field, PropertyDescriptor propertyDescriptor)
field
- 字段propertyDescriptor
- 字段name对应的propertypublic void copyFromPropertyDescriptor(EntityField other)
other
- public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass
- public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
T
- annotationClass
- public Object getValue(Object object) throws IllegalAccessException, InvocationTargetException
object
- IllegalAccessException
InvocationTargetException
public Class<?> getJavaType()
public void setJavaType(Class<?> javaType)
javaType
- public String getName()
Copyright © 2018. All rights reserved.